Skip to content

Commit 33648df

Browse files
committed
Minor: variable rename
1 parent 4e8e477 commit 33648df

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

clickhouse/columns/lowcardinality.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)