mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
FunctionConstantBase return non const column in case of distributed
This commit is contained in:
parent
6419f91cfc
commit
56e7218101
@ -42,6 +42,12 @@ public:
|
||||
|
||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName &, const DataTypePtr & result_type, size_t input_rows_count) const override
|
||||
{
|
||||
if (is_distributed)
|
||||
{
|
||||
auto result_column = result_type->createColumn();
|
||||
result_column->insertMany(constant_value, input_rows_count);
|
||||
return result_column;
|
||||
}
|
||||
return result_type->createColumnConst(input_rows_count, constant_value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user