Skip to content

Commit a14fbfb

Browse files
remove plans from slt
1 parent ae875d1 commit a14fbfb

1 file changed

Lines changed: 0 additions & 40 deletions

File tree

datafusion/sqllogictest/test_files/push_down_filter_regression.slt

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -198,26 +198,6 @@ set datafusion.explain.physical_plan_only = true;
198198
statement ok
199199
create external table agg_reordered_pushdown stored as parquet location '../../parquet-testing/data/alltypes_plain.parquet';
200200

201-
# Filter on grouping column b should push below the aggregate even though the
202-
# aggregate input is reordered to (c, a, b).
203-
query TT
204-
explain
205-
select a, b, cnt
206-
from (
207-
select a, b, count(c) as cnt
208-
from (
209-
select id as c, cast(string_col as varchar) as a, bool_col as b
210-
from agg_reordered_pushdown
211-
) t
212-
group by a, b
213-
) q
214-
where b = true;
215-
----
216-
physical_plan
217-
01)ProjectionExec: expr=[a@0 as a, b@1 as b, count(t.c)@2 as cnt]
218-
02)--AggregateExec: mode=Single, gby=[a@1 as a, b@2 as b], aggr=[count(t.c)]
219-
03)----DataSourceExec: file_groups={1 group: [[WORKSPACE_ROOT/parquet-testing/data/alltypes_plain.parquet]]}, projection=[id@0 as c, CAST(string_col@9 AS Utf8View) as a, bool_col@1 as b], file_type=parquet, predicate=bool_col@1, pruning_predicate=bool_col_min@0 OR bool_col_max@1, required_guarantees=[]
220-
221201
query TBI rowsort
222202
select a, b, cnt
223203
from (
@@ -232,26 +212,6 @@ where b = true;
232212
----
233213
0 true 4
234214

235-
# Filter on aggregate output must remain above the aggregate.
236-
query TT
237-
explain
238-
select a, b, cnt
239-
from (
240-
select a, b, count(c) as cnt
241-
from (
242-
select id as c, cast(string_col as varchar) as a, bool_col as b
243-
from agg_reordered_pushdown
244-
) t
245-
group by a, b
246-
) q
247-
where cnt > 1;
248-
----
249-
physical_plan
250-
01)ProjectionExec: expr=[a@0 as a, b@1 as b, count(t.c)@2 as cnt]
251-
02)--FilterExec: count(t.c)@2 > 1
252-
03)----AggregateExec: mode=Single, gby=[a@1 as a, b@2 as b], aggr=[count(t.c)]
253-
04)------DataSourceExec: file_groups={1 group: [[WORKSPACE_ROOT/parquet-testing/data/alltypes_plain.parquet]]}, projection=[id@0 as c, CAST(string_col@9 AS Utf8View) as a, bool_col@1 as b], file_type=parquet
254-
255215
query TBI rowsort
256216
select a, b, cnt
257217
from (

0 commit comments

Comments
 (0)