Skip to content

Commit 101eb18

Browse files
committed
test(9870): demonstrate that the sqllogictests are now passing
1 parent 964dee0 commit 101eb18

File tree

1 file changed

+10
-2
lines changed
  • datafusion/sqllogictest/test_files

1 file changed

+10
-2
lines changed

datafusion/sqllogictest/test_files/expr.slt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,9 +2311,17 @@ host2 2.2 202
23112311
host3 3.3 303
23122312

23132313
# can have 2 projections with aggr(short_circuited), with the same short-circuited expr (e.g. CASE WHEN)
2314-
statement error DataFusion error: Optimizer rule 'common_sub_expression_eliminate' failed
2314+
query TRR
23152315
select t2."struct(t1.time,t1.load1,t1.load2,t1.host)"['c3'] as host, sum((case when t2."struct(t1.time,t1.load1,t1.load2,t1.host)"['c3'] is not null then t2."struct(t1.time,t1.load1,t1.load2,t1.host)" end)['c1']), sum((case when t2."struct(t1.time,t1.load1,t1.load2,t1.host)"['c3'] is not null then t2."struct(t1.time,t1.load1,t1.load2,t1.host)" end)['c2']) from (select struct(time,load1,load2,host) from t1) t2 where t2."struct(t1.time,t1.load1,t1.load2,t1.host)"['c3'] IS NOT NULL group by t2."struct(t1.time,t1.load1,t1.load2,t1.host)"['c3'] order by host;
2316+
----
2317+
host1 1.1 101
2318+
host2 2.2 202
2319+
host3 3.3 303
23162320

23172321
# can have 2 projections with aggr(short_circuited), with the same short-circuited expr (e.g. coalesce)
2318-
statement error DataFusion error: Optimizer rule 'common_sub_expression_eliminate' failed
2322+
query TRR
23192323
select t2."struct(t1.time,t1.load1,t1.load2,t1.host)"['c3'] as host, sum(coalesce(t2."struct(t1.time,t1.load1,t1.load2,t1.host)")['c1']), sum(coalesce(t2."struct(t1.time,t1.load1,t1.load2,t1.host)")['c2']) from (select struct(time,load1,load2,host) from t1) t2 where t2."struct(t1.time,t1.load1,t1.load2,t1.host)"['c3'] IS NOT NULL group by t2."struct(t1.time,t1.load1,t1.load2,t1.host)"['c3'] order by host;
2324+
----
2325+
host1 1.1 101
2326+
host2 2.2 202
2327+
host3 3.3 303

0 commit comments

Comments
 (0)