window view fix

This commit is contained in:
Suzy Wang 2023-01-17 12:04:01 -08:00
parent 4f7f2ed9e1
commit 1093a42f68

View File

@ -209,7 +209,8 @@ struct AggregationMethodOneNumber
// Insert the key from the hash table into columns. // Insert the key from the hash table into columns.
static void insertKeyIntoColumns(const Key & key, std::vector<IColumn *> & key_columns, const Sizes & /*key_sizes*/) static void insertKeyIntoColumns(const Key & key, std::vector<IColumn *> & key_columns, const Sizes & /*key_sizes*/)
{ {
const auto * key_holder = reinterpret_cast<const char *>(&key); FieldType casted_key = static_cast<FieldType>(key);
const auto * key_holder = reinterpret_cast<const char *>(&casted_key);
auto * column = static_cast<ColumnVectorHelper *>(key_columns[0]); auto * column = static_cast<ColumnVectorHelper *>(key_columns[0]);
column->insertRawData<sizeof(FieldType)>(key_holder); column->insertRawData<sizeof(FieldType)>(key_holder);
} }