mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
try fix tests.
This commit is contained in:
parent
ea3f638b30
commit
534e55f5b5
@ -996,13 +996,10 @@ void InterpreterSelectQuery::executeFetchColumns(
|
||||
argument_types[j] = header.getByName(desc->argument_names[j]).type;
|
||||
|
||||
Block block_with_count{
|
||||
{ColumnPtr(column->cloneEmpty()), std::make_shared<DataTypeAggregateFunction>(func, argument_types, desc->parameters), desc->column_name}};
|
||||
{std::move(column), std::make_shared<DataTypeAggregateFunction>(func, argument_types, desc->parameters), desc->column_name}};
|
||||
|
||||
Chunk chunk(Columns(), column->size());
|
||||
chunk.addColumn(std::move(column));
|
||||
|
||||
auto source = std::make_shared<SourceFromSingleChunk>(std::move(block_with_count), std::move(chunk));
|
||||
pipeline.init(Pipe(std::move(source)));
|
||||
auto istream = std::make_shared<OneBlockInputStream>(block_with_count);
|
||||
pipeline.init(Pipe(std::make_shared<SourceFromInputStream>(istream)));
|
||||
from_stage = QueryProcessingStage::WithMergeableState;
|
||||
analysis_result.first_stage = false;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user