Skip to content

Commit 61b0f82

Browse files
committed
Update LC clear
1 parent b793daa commit 61b0f82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clickhouse/columns/lowcardinality.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,10 @@ void ColumnLowCardinality::Clear() {
355355
dictionary_column_->Clear();
356356
unique_items_map_.clear();
357357

358-
AppendNullItem();
358+
if (auto columnNullable = dictionary_column_->As<ColumnNullable>()) {
359+
AppendNullItem();
360+
}
361+
AppendDefaultItem();
359362
}
360363

361364
size_t ColumnLowCardinality::Size() const {

0 commit comments

Comments
 (0)