This commit is contained in:
Nikolai Kochetov 2022-11-24 17:28:01 +00:00
parent 61baf3b441
commit bb98a7b433
3 changed files with 5 additions and 0 deletions

View File

@ -3587,6 +3587,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;