@@ -2473,7 +2473,7 @@ host2 202
2473
2473
host3 303
2474
2474
2475
2475
# TODO: Issue tracked in https://github.com/apache/datafusion/issues/10364
2476
- query error
2476
+ query TR
2477
2477
select
2478
2478
t2.server['c3'] as host,
2479
2479
sum((
@@ -2488,6 +2488,10 @@ select
2488
2488
) t2
2489
2489
where t2.server['c3'] IS NOT NULL
2490
2490
group by t2.server['c3'] order by host;
2491
+ ----
2492
+ host1 101
2493
+ host2 202
2494
+ host3 303
2491
2495
2492
2496
# can have 2 projections with aggr(short_circuited), with different short-circuited expr
2493
2497
query TRR
@@ -2559,7 +2563,7 @@ host2 2.2 202
2559
2563
host3 3.3 303
2560
2564
2561
2565
# TODO: Issue tracked in https://github.com/apache/datafusion/issues/10364
2562
- query error
2566
+ query TRR
2563
2567
select
2564
2568
t2.server['c3'] as host,
2565
2569
sum((
@@ -2579,6 +2583,10 @@ select
2579
2583
) t2
2580
2584
where t2.server['c3'] IS NOT NULL
2581
2585
group by t2.server['c3'] order by host;
2586
+ ----
2587
+ host1 1.1 101
2588
+ host2 2.2 202
2589
+ host3 3.3 303
2582
2590
2583
2591
# can have 2 projections with aggr(short_circuited), with the same short-circuited expr (e.g. coalesce)
2584
2592
query TRR
@@ -2587,3 +2595,28 @@ select t2."struct(t1.time,t1.load1,t1.load2,t1.host)"['c3'] as host, sum(coalesc
2587
2595
host1 1.1 101
2588
2596
host2 2.2 202
2589
2597
host3 3.3 303
2598
+
2599
+ statement ok
2600
+ set datafusion.sql_parser.dialect = 'Postgres';
2601
+
2602
+ statement ok
2603
+ create table t (a float) as values (1), (2), (3);
2604
+
2605
+ query TT
2606
+ explain select min(a) filter (where a > 1) as x from t;
2607
+ ----
2608
+ logical_plan
2609
+ 01)Projection: MIN(t.a) FILTER (WHERE t.a > Int64(1)) AS x
2610
+ 02)--Aggregate: groupBy=[[]], aggr=[[MIN(t.a) FILTER (WHERE t.a > Float32(1)) AS MIN(t.a) FILTER (WHERE t.a > Int64(1))]]
2611
+ 03)----TableScan: t projection=[a]
2612
+ physical_plan
2613
+ 01)ProjectionExec: expr=[MIN(t.a) FILTER (WHERE t.a > Int64(1))@0 as x]
2614
+ 02)--AggregateExec: mode=Single, gby=[], aggr=[MIN(t.a) FILTER (WHERE t.a > Int64(1))]
2615
+ 03)----MemoryExec: partitions=1, partition_sizes=[1]
2616
+
2617
+
2618
+ statement ok
2619
+ drop table t;
2620
+
2621
+ statement ok
2622
+ set datafusion.sql_parser.dialect = 'Generic';
0 commit comments