mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
commit
8d3ccf1c52
@ -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};
|
||||
|
@ -0,0 +1 @@
|
||||
1
|
3
tests/queries/0_stateless/02477_exists_fuzz_43478.sql
Normal file
3
tests/queries/0_stateless/02477_exists_fuzz_43478.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user