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
test: update expected output for Optional(DynamicFilter) wrapper
The OptionalFilterPhysicalExpr wrapper introduced for optional dynamic
filters changes two things observable in tests:
1. Display format: `DynamicFilter [...]` becomes `Optional(DynamicFilter
[...])` when wrapped. Update insta snapshots in filter_pushdown.rs
and plan strings in joins.slt / push_down_filter_parquet.slt.
2. Adaptive tracker placement: new filters flow through the byte-ratio
heuristic and optional filters can be skipped mid-stream. This
zeroes pushdown metrics for cases where the tracker chose PostScan
or dropped the filter. Row group / page pruning still runs via the
pruning predicate, so output rows are unchanged.
Also fix test_discover_dynamic_filters_via_expressions_api to walk
each expression subtree so the inner DynamicFilterPhysicalExpr is still
found when wrapped in OptionalFilterPhysicalExpr.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- DataSourceExec: file_groups={1 group: [[test.parquet]]}, projection=[a, b, e], file_type=test, pushdown_supported=true, predicate=DynamicFilter [ CASE hash_repartition % 12 WHEN 5 THEN a@0 >= ab AND a@0 <= ab AND b@1 >= bb AND b@1 <= bb AND struct(a@0, b@1) IN (SET) ([{c0:ab,c1:bb}]) WHEN 8 THEN a@0 >= aa AND a@0 <= aa AND b@1 >= ba AND b@1 <= ba AND struct(a@0, b@1) IN (SET) ([{c0:aa,c1:ba}]) ELSE false END ]
1086
+
- DataSourceExec: file_groups={1 group: [[test.parquet]]}, projection=[a, b, e], file_type=test, pushdown_supported=true, predicate=Optional(DynamicFilter [ CASE hash_repartition % 12 WHEN 5 THEN a@0 >= ab AND a@0 <= ab AND b@1 >= bb AND b@1 <= bb AND struct(a@0, b@1) IN (SET) ([{c0:ab,c1:bb}]) WHEN 8 THEN a@0 >= aa AND a@0 <= aa AND b@1 >= ba AND b@1 <= ba AND struct(a@0, b@1) IN (SET) ([{c0:aa,c1:ba}]) ELSE false END ])
- DataSourceExec: file_groups={1 group: [[test.parquet]]}, projection=[a, b, e], file_type=test, pushdown_supported=true, predicate=DynamicFilter [ a@0 >= aa AND a@0 <= ab AND b@1 >= ba AND b@1 <= bb AND struct(a@0, b@1) IN (SET) ([{c0:aa,c1:ba}, {c0:ab,c1:bb}]) ]
1282
+
- DataSourceExec: file_groups={1 group: [[test.parquet]]}, projection=[a, b, e], file_type=test, pushdown_supported=true, predicate=Optional(DynamicFilter [ a@0 >= aa AND a@0 <= ab AND b@1 >= ba AND b@1 <= bb AND struct(a@0, b@1) IN (SET) ([{c0:aa,c1:ba}, {c0:ab,c1:bb}]) ])
0 commit comments