You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: datafusion/sqllogictest/test_files/push_down_filter_regression.slt
-40Lines changed: 0 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -198,26 +198,6 @@ set datafusion.explain.physical_plan_only = true;
198
198
statement ok
199
199
create external table agg_reordered_pushdown stored as parquet location '../../parquet-testing/data/alltypes_plain.parquet';
200
200
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
-
221
201
query TBI rowsort
222
202
select a, b, cnt
223
203
from (
@@ -232,26 +212,6 @@ where b = true;
232
212
----
233
213
0 true 4
234
214
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
0 commit comments