FunctionConstantBase return non const column in case of distributed

This commit is contained in:
vdimir 2023-09-01 12:45:32 +00:00
parent 6419f91cfc
commit 56e7218101
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -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);
}