Merge pull request #34406 from ClickHouse/fix-removing-order-in-CreatingSetsTransform

Fix wrong destruction order in CreatingSetsTransform.
This commit is contained in:
Maksim Kita 2022-02-10 11:24:18 +01:00 committed by GitHub
commit 7a30d490a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ namespace ErrorCodes
TSKVRowInputFormat::TSKVRowInputFormat(ReadBuffer & in_, Block header_, Params params_, const FormatSettings & format_settings_)
: IRowInputFormat(header_, in_, std::move(params_)), format_settings(format_settings_), name_map(header_.columns())
: IRowInputFormat(std::move(header_), in_, std::move(params_)), format_settings(format_settings_), name_map(getPort().getHeader().columns())
{
const auto & sample_block = getPort().getHeader();
size_t num_columns = sample_block.columns();

View File

@ -44,8 +44,8 @@ public:
private:
SubqueryForSet subquery;
std::unique_ptr<PushingPipelineExecutor> executor;
QueryPipeline table_out;
std::unique_ptr<PushingPipelineExecutor> executor;
UInt64 read_rows = 0;
Stopwatch watch;