mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
window view fix
This commit is contained in:
parent
4f7f2ed9e1
commit
1093a42f68
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user