You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2025/03/04 12:34:15 UTC
[I] Implement `tree` explain for `FilterExec` [datafusion]
alamb opened a new issue, #15000:
URL: https://github.com/apache/datafusion/issues/15000
### Is your feature request related to a problem or challenge?
- Part of https://github.com/apache/datafusion/issues/14914
@irenjj added a new `tree` explain mode in https://github.com/apache/datafusion/pull/14677. Now we need to add support for different types of operators.
```
set datafusion.explain.format = 'tree';
create table foo(x int, y int) as values (1,2), (3,4);
explain select * from foo where x = 4;
+---------------+------------------------------------+
| plan_type | plan |
+---------------+------------------------------------+
| logical_plan | Filter: foo.x = Int32(4) |
| | TableScan: foo projection=[x, y] |
| physical_plan | ┌───────────────────────────┐ |
| | │ CoalesceBatchesExec │ |
| | └─────────────┬─────────────┘ |
| | ┌─────────────┴─────────────┐ |
| | │ FilterExec │ |
| | └─────────────┬─────────────┘ |
| | ┌─────────────┴─────────────┐ |
| | │ DataSourceExec │ |
| | │ -------------------- │ |
| | │ partition_sizes: [1] │ |
| | │ partitions: 1 │ |
| | └───────────────────────────┘ |
| | |
+---------------+------------------------------------+
```
### Describe the solution you'd like
Add `tree` format to the named ExecutionPlan
Roughly speaking the process goes like:
1. Add the relevant code to the operator
2. Add / update explain_tree.slt test to show the new code in action
You can run the tests like
```shell
cargo test --test sqllogictests -- explain_tree
```
You can update the test like this:
```shell
cargo test --test sqllogictests -- explain_tree --complete
```
### Describe alternatives you've considered
Here is an example PR: TODO
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Implement `tree` explain for `FilterExec` [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #15000: Implement `tree` explain for `FilterExec`
URL: https://github.com/apache/datafusion/issues/15000
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org