mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Enlarge constant default column if it's empty
This commit is contained in:
parent
54a1f0c2a6
commit
c3159af898
@ -288,7 +288,10 @@ bool PreparedFunctionImpl::defaultImplementationForConstantArguments(Block & blo
|
||||
const ColumnWithTypeAndName & column = block.getByPosition(args[arg_num]);
|
||||
|
||||
if (arguments_to_remain_constants.end() != std::find(arguments_to_remain_constants.begin(), arguments_to_remain_constants.end(), arg_num))
|
||||
temporary_block.insert(column);
|
||||
if (column.column->empty())
|
||||
temporary_block.insert({column.column->cloneResized(1), column.type, column.name});
|
||||
else
|
||||
temporary_block.insert(column);
|
||||
else
|
||||
{
|
||||
have_converted_columns = true;
|
||||
|
Loading…
Reference in New Issue
Block a user