Skip to content

Commit 8d9ac3b

Browse files
authored
Minor comment
1 parent df52fdc commit 8d9ac3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clickhouse/client.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ void Client::Impl::WriteBlock(const Block& block, OutputStream& output) {
653653
WireFormat::WriteString(output, bi.Name());
654654
WireFormat::WriteString(output, bi.Type()->GetName());
655655

656+
// Empty columns are not serialized and occupy exactly 0 bytes.
656657
// ref https://github.com/ClickHouse/ClickHouse/blob/39b37a3240f74f4871c8c1679910e065af6bea19/src/Formats/NativeWriter.cpp#L163
657658
const bool containsData = block.GetRowCount() > 0;
658659
if (containsData) {

0 commit comments

Comments
 (0)