File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,11 @@ void ColumnLowCardinality::Swap(Column& other) {
312
312
if (!dictionary_column_->Type ()->IsEqual (col.dictionary_column_ ->Type ()))
313
313
throw std::runtime_error (" Can't swap() LowCardinality columns of different types." );
314
314
315
+ // It is important here not to swap pointers to dictionary object,
316
+ // but swap contents of dictionaries, so the object inside shared_ptr stays the same
317
+ // (needed for ColumnLowCardinalityT)
315
318
dictionary_column_->Swap (*col.dictionary_column_ );
319
+
316
320
index_column_.swap (col.index_column_ );
317
321
unique_items_map_.swap (col.unique_items_map_ );
318
322
}
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ ADD_EXECUTABLE (clickhouse-cpp-ut
7
7
stream_ut.cpp
8
8
type_parser_ut.cpp
9
9
types_ut.cpp
10
- types_ut.cpp
11
10
12
11
performance_tests.cpp
13
12
tcp_server.cpp
You can’t perform that action at this time.
0 commit comments