You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "petern48 (via GitHub)" <gi...@apache.org> on 2025/09/09 03:08:52 UTC
[I] `EXPLAIN VERBOSE` only works when format is set to (non-default) 'indent' [datafusion]
petern48 opened a new issue, #17480:
URL: https://github.com/apache/datafusion/issues/17480
### Describe the bug
On the `datafusion-cli`, `tree` was made the default explain format in [this PR](https://github.com/apache/datafusion/pull/15427). Now, when we use `EXPLAIN VERBOSE`, we simply get the regular output of `explain format tree`, which isn't verbose. Since only `indent` is supported for `explain verbose`, I think it would be nice to just override the explain format to `indent` when verbose is specified.
### To Reproduce
cd `datafusion-cli`
`cargo run`
```sql
> explain verbose select max(1 + 3);
+---------------+-------------------------------+
| plan_type | plan |
+---------------+-------------------------------+
| physical_plan | ┌───────────────────────────┐ |
| | │ AggregateExec │ |
| | │ -------------------- │ |
| | │ aggr: │ |
| | │ max(Int64(1) + Int64(3)) │ |
| | │ │ |
| | │ mode: Single │ |
| | └─────────────┬─────────────┘ |
| | ┌─────────────┴─────────────┐ |
| | │ PlaceholderRowExec │ |
| | └───────────────────────────┘ |
| | |
+---------------+-------------------------------+
```
To workaround this, the user has to manually set the format option to `indent` to get the desired verbose explain output
```sql
set datafusion.explain.format = 'indent';
> explain verbose select max(1 + 3);
```
### Expected behavior
_No response_
### 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] `EXPLAIN VERBOSE` only works when format is set to (non-default) 'indent' [datafusion]
Posted by "petern48 (via GitHub)" <gi...@apache.org>.
petern48 commented on issue #17480:
URL: https://github.com/apache/datafusion/issues/17480#issuecomment-3268694949
take
--
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
Re: [I] `EXPLAIN VERBOSE` only works when format is set to (non-default) 'indent' [datafusion]
Posted by "petern48 (via GitHub)" <gi...@apache.org>.
petern48 commented on issue #17480:
URL: https://github.com/apache/datafusion/issues/17480#issuecomment-3268882942
> Good idea! Perhaps we can override `EXPLAIN ANALYZE` too?
That's a good idea, too! I tried it in the cli, and `explain analyze` already overrides to `indent`. The code is a little different, so it happens naturally, whereas we need to override it explicitly for `explain verbose`.
--
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
Re: [I] `EXPLAIN VERBOSE` only works when format is set to (non-default) 'indent' [datafusion]
Posted by "2010YOUY01 (via GitHub)" <gi...@apache.org>.
2010YOUY01 commented on issue #17480:
URL: https://github.com/apache/datafusion/issues/17480#issuecomment-3268722339
Good idea! Perhaps we can override `EXPLAIN ANALYZE` too?
--
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
Re: [I] `EXPLAIN VERBOSE` only works when format is set to (non-default) 'indent' [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #17480: `EXPLAIN VERBOSE` only works when format is set to (non-default) 'indent'
URL: https://github.com/apache/datafusion/issues/17480
--
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