mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
fix const defaults
This commit is contained in:
parent
bac1f77620
commit
5036309d26
@ -69,7 +69,12 @@ Block AddingDefaultsBlockInputStream::readImpl()
|
||||
for (size_t row_idx = 0; row_idx < column_read.column->size(); ++row_idx)
|
||||
{
|
||||
if (mask[row_idx])
|
||||
column_mixed->insertFrom(*column_def.column, row_idx);
|
||||
{
|
||||
if (column_def.column->isColumnConst())
|
||||
column_mixed->insert((*column_def.column)[row_idx]);
|
||||
else
|
||||
column_mixed->insertFrom(*column_def.column, row_idx);
|
||||
}
|
||||
else
|
||||
column_mixed->insertFrom(*column_read.column, row_idx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user