Skip to content

fix(sql): apply table-scan rewrite before EXPLAIN display#161

Merged
hozan23 merged 1 commit into
datafusion-contrib:mainfrom
vimeh:fix/explain-rewrite-visibility
Feb 26, 2026
Merged

fix(sql): apply table-scan rewrite before EXPLAIN display#161
hozan23 merged 1 commit into
datafusion-contrib:mainfrom
vimeh:fix/explain-rewrite-visibility

Conversation

@vimeh
Copy link
Copy Markdown
Contributor

@vimeh vimeh commented Feb 26, 2026

The EXPLAIN display path in VirtualExecutionPlan::fmt_as was generating SQL from the pre-rewrite plan, causing EXPLAIN output to not reflect the actual pushed-down query. Apply RewriteTableScanAnalyzer::rewrite before SQL rendering so EXPLAIN output matches final_sql().

The EXPLAIN display path in VirtualExecutionPlan::fmt_as was generating
SQL from the pre-rewrite plan, causing EXPLAIN output to not reflect
the actual pushed-down query. Apply RewriteTableScanAnalyzer::rewrite
before SQL rendering so EXPLAIN output matches final_sql().
@hozan23 hozan23 merged commit 375c446 into datafusion-contrib:main Feb 26, 2026
7 checks passed
@github-actions github-actions Bot mentioned this pull request Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants