Skip to content

Commit be9bc8f

Browse files
committed
fix loading of empty nested array (#110)
1 parent fc9a490 commit be9bc8f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clickhouse/columns/array.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ void ColumnArray::Append(ColumnRef column) {
5555
}
5656

5757
bool ColumnArray::Load(CodedInputStream* input, size_t rows) {
58+
if (!rows) {
59+
return true;
60+
}
5861
if (!offsets_->Load(input, rows)) {
5962
return false;
6063
}

0 commit comments

Comments
 (0)