Merge pull request #43636 from ClickHouse/fix-43478

Fix #43478
This commit is contained in:
Nikolai Kochetov 2022-11-25 14:49:41 +01:00 committed by GitHub
commit 8d3ccf1c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -4063,6 +4063,7 @@ ProjectionNames QueryAnalyzer::resolveFunction(QueryTreeNodePtr & node, Identifi
in_subquery->getJoinTree() = exists_subquery_argument;
in_subquery->getLimit() = std::make_shared<ConstantNode>(1UL, constant_data_type);
in_subquery->resolveProjectionColumns({NameAndTypePair("1", constant_data_type)});
in_subquery->setIsSubquery(true);
function_node_ptr = std::make_shared<FunctionNode>("in");
function_node_ptr->getArguments().getNodes() = {std::make_shared<ConstantNode>(1UL, constant_data_type), in_subquery};

View File

@ -0,0 +1 @@
1

View File

@ -0,0 +1,3 @@
create table test_rows_compact_part__fuzz_11 (x UInt32) engine = MergeTree order by x;
insert into test_rows_compact_part__fuzz_11 select 1;
select 1 from test_rows_compact_part__fuzz_11 where exists(select 1) settings allow_experimental_analyzer=1;