File tree Expand file tree Collapse file tree 3 files changed +24
-64
lines changed Expand file tree Collapse file tree 3 files changed +24
-64
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ pub mod references;
92
92
pub mod repartition;
93
93
pub mod select;
94
94
mod sql_api;
95
- pub mod subqueries;
96
95
pub mod timestamp;
97
96
98
97
fn create_join_context (
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -988,3 +988,27 @@ SELECT * FROM
988
988
ON (severity.cron_job_name = jobs.cron_job_name);
989
989
----
990
990
catan-prod1-daily success catan-prod1-daily high
991
+
992
+ ##correlated_scalar_subquery_sum_agg_bug
993
+ #query TT
994
+ #explain
995
+ #select t1.t1_int from t1 where
996
+ # (select sum(t2_int) is null from t2 where t1.t1_id = t2.t2_id)
997
+ #----
998
+ #logical_plan
999
+ #Projection: t1.t1_int
1000
+ #--Inner Join: t1.t1_id = __scalar_sq_1.t2_id
1001
+ #----TableScan: t1 projection=[t1_id, t1_int]
1002
+ #----SubqueryAlias: __scalar_sq_1
1003
+ #------Projection: t2.t2_id
1004
+ #--------Filter: SUM(t2.t2_int) IS NULL
1005
+ #----------Aggregate: groupBy=[[t2.t2_id]], aggr=[[SUM(t2.t2_int)]]
1006
+ #------------TableScan: t2 projection=[t2_id, t2_int]
1007
+
1008
+ #query I rowsort
1009
+ #select t1.t1_int from t1 where
1010
+ # (select sum(t2_int) is null from t2 where t1.t1_id = t2.t2_id)
1011
+ #----
1012
+ #2
1013
+ #3
1014
+ #4
You can’t perform that action at this time.
0 commit comments