File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -162,16 +162,15 @@ void ColumnLowCardinality::removeLastIndex() {
162162 }, *index_column_);
163163}
164164
165- details::LowCardinalityHashKey ColumnLowCardinality::computeHashKey (const ItemView & data ) {
165+ details::LowCardinalityHashKey ColumnLowCardinality::computeHashKey (const ItemView & item ) {
166166 static const auto hasher = std::hash<ItemView::DataType>{};
167- if (data .type == Type::Void) {
167+ if (item .type == Type::Void) {
168168 // to distinguish NULL of ColumnNullable and empty string.
169169 return {0u , 0u };
170170 }
171171
172- const auto hash1 = hasher (data.data );
173- const auto binary = data.AsBinaryData ();
174- const auto hash2 = CityHash64 (binary.data (), binary.size ());
172+ const auto hash1 = hasher (item.data );
173+ const auto hash2 = CityHash64 (item.data .data (), item.data .size ());
175174
176175 return details::LowCardinalityHashKey{hash1, hash2};
177176}
You can’t perform that action at this time.
0 commit comments