Skip to content

Commit 7809b9b

Browse files
committed
test: adapt mixed-access nested pruning expectation for branch-55
branch-55 does not have #24130/#24315, which taught nested schema pruning to union the leaves needed by mixed whole-column + field-access reads. Without that, `select s, s['y'] from narrow` falls back to reading every physical leaf instead of clipping to the narrow schema, so bytes_scanned is 219 (matching the unclipped full_schema read) rather than 146.
1 parent 504ae5d commit 7809b9b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎datafusion/sqllogictest/test_files/parquet_nested_schema_pruning.slt‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,14 @@ explain analyze select s['x'] from narrow;
133133
----
134134
Plan with Metrics DataSourceExec: <slt:ignore>metrics=[output_rows=3, <slt:ignore>bytes_scanned=75<slt:ignore>]
135135

136-
# Mixed access -- the whole (narrowed) column and a subfield of it -- still
137-
# reads only the narrow schema's leaves.
136+
# Mixed access -- the whole (narrowed) column and a subfield of it. A root
137+
# carrying both access kinds falls back to reading every physical leaf, so
138+
# this costs the same as the unclipped full_schema read below rather than
139+
# clipping to the narrow schema's leaves.
138140
query TT
139141
explain analyze select s, s['y'] from narrow;
140142
----
141-
Plan with Metrics DataSourceExec: <slt:ignore>metrics=[output_rows=3, <slt:ignore>bytes_scanned=146<slt:ignore>]
143+
Plan with Metrics DataSourceExec: <slt:ignore>metrics=[output_rows=3, <slt:ignore>bytes_scanned=219<slt:ignore>]
142144

143145
query TT
144146
explain analyze select s, s['y'] from full_schema;

0 commit comments

Comments
 (0)