mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Fix #43478
This commit is contained in:
parent
61baf3b441
commit
bb98a7b433
@ -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};
|
||||
|
@ -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