mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Remove LowCardinality from aggregate function argument types. #4919
This commit is contained in:
parent
eff767b6aa
commit
523c8e5ec1
@ -19,6 +19,7 @@
|
||||
#include <DataTypes/DataTypeNullable.h>
|
||||
#include <DataTypes/NestedUtils.h>
|
||||
#include <DataTypes/DataTypesNumber.h>
|
||||
#include <DataTypes/DataTypeLowCardinality.h>
|
||||
|
||||
#include <Columns/IColumn.h>
|
||||
|
||||
@ -406,7 +407,7 @@ void ExpressionAnalyzer::getAggregates(const ASTPtr & ast, ExpressionActionsPtr
|
||||
|
||||
getRootActions(arguments[i], true, actions);
|
||||
const std::string & name = arguments[i]->getColumnName();
|
||||
types[i] = actions->getSampleBlock().getByName(name).type;
|
||||
types[i] = recursiveRemoveLowCardinality(actions->getSampleBlock().getByName(name).type);
|
||||
aggregate.argument_names[i] = name;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user