-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Improve readability of table scan projections in query plans (remove Some and None)
#2789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve readability of table scan projections in query plans (remove Some and None)
#2789
Conversation
…tion-readability-merged # Conflicts: # datafusion/core/src/logical_plan/plan.rs # datafusion/core/src/optimizer/limit_push_down.rs # datafusion/core/tests/custom_sources.rs # datafusion/core/tests/sql/avro.rs # datafusion/core/tests/sql/explain_analyze.rs # datafusion/core/tests/sql/json.rs # datafusion/core/tests/sql/projection.rs # datafusion/core/tests/sql/udf.rs # datafusion/core/tests/user_defined_plan.rs # datafusion/expr/src/logical_plan/builder.rs # datafusion/expr/src/logical_plan/plan.rs # datafusion/optimizer/src/filter_push_down.rs # datafusion/optimizer/src/projection_push_down.rs # datafusion/optimizer/src/single_distinct_to_groupby.rs # datafusion/sql/src/planner.rs
|
@andygrove my concern however the output like Afaik Projection here is query projection(selected by user output), and TableScan projection is what needs to be fetched from the table to make query work. Since both of it named as projection won't be that confusing? |
Codecov Report
@@ Coverage Diff @@
## master #2789 +/- ##
==========================================
- Coverage 85.14% 85.11% -0.04%
==========================================
Files 273 273
Lines 48248 48241 -7
==========================================
- Hits 41079 41058 -21
- Misses 7169 7183 +14
Continue to review full report at Codecov.
|
|
@andygrove please check this |
alamb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @comphead -- I think the plans now look much nicer 🧹 👍
Some and None)
Which issue does this PR close?
Closes #2697 .
Rationale for this change
Improve readability for Table scans. Provide column name instead of column index.
TableScan a projection=[col1,col2]instead ofTableScan a projection=Some([col1,col2])What changes are included in this PR?
Are there any user-facing changes?