mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
update
This commit is contained in:
parent
2a51b6c403
commit
690c4d0803
@ -1157,14 +1157,7 @@ void WindowTransform::appendChunk(Chunk & chunk)
|
||||
// Initialize output columns.
|
||||
for (auto & ws : workspaces)
|
||||
{
|
||||
if (ws.window_function_impl)
|
||||
block.casted_columns.push_back(ws.window_function_impl->castColumn(block.input_columns, ws.argument_column_indices));
|
||||
else
|
||||
{
|
||||
/// `castColumn` returns nullptr at default, so it's OK to put nullptr as a placeholder here
|
||||
/// it should not be used in fact.
|
||||
block.casted_columns.push_back(nullptr);
|
||||
}
|
||||
block.casted_columns.push_back(ws.window_function_impl ? ws.window_function_impl->castColumn(block.input_columns, ws.argument_column_indices) : nullptr);
|
||||
|
||||
block.output_columns.push_back(ws.aggregate_function->getResultType()
|
||||
->createColumn());
|
||||
|
Loading…
Reference in New Issue
Block a user