mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
dbms:investigation [#METR-16938]
This commit is contained in:
parent
be230b1859
commit
9f32c9b9cf
@ -55,6 +55,9 @@ protected:
|
||||
Block res = children.back()->read();
|
||||
if (!res)
|
||||
return res;
|
||||
/** @todo if somehow block does not contain values for implicitly-defaulted columns that are prerequisites
|
||||
* for explicitly-defaulted ones, exception will be thrown during evaluating such columns
|
||||
* (implicitly-defaulted columns are evaluated on the line after following one. */
|
||||
evaluateMissingDefaults(res, *required_columns, column_defaults, context);
|
||||
res.addDefaults(*required_columns);
|
||||
return res;
|
||||
|
@ -37,10 +37,14 @@ public:
|
||||
Block res = block;
|
||||
|
||||
/// Вычисляет явно указанные (в column_defaults) значения по-умолчанию.
|
||||
/** @todo if somehow block does not contain values for implicitly-defaulted columns that are prerequisites
|
||||
* for explicitly-defaulted ones, exception will be thrown during evaluating such columns
|
||||
* (implicitly-defaulted columns are evaluated on the line after following one. */
|
||||
evaluateMissingDefaults(res, *required_columns, column_defaults, context);
|
||||
|
||||
/// Добавляет не указанные значения по-умолчанию.
|
||||
if (!only_explicit_column_defaults)
|
||||
/// @todo this line may be moved before `evaluateMissingDefaults` with passing {required_columns - explicitly-defaulted columns}
|
||||
res.addDefaults(*required_columns);
|
||||
|
||||
output->write(res);
|
||||
|
Loading…
Reference in New Issue
Block a user