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/02/28 21:05:16 UTC
[I] datafusion-cli regression: explain plan output looks bad [datafusion]
alamb opened a new issue, #14947:
URL: https://github.com/apache/datafusion/issues/14947
### Describe the bug
Explain plans look good in DataFusion 45:
```sql
DataFusion CLI v45.0.0
> create table foo(x int, y int) as values (1,2), (3,4);
0 row(s) fetched.
Elapsed 0.007 seconds.
> 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: target_batch_size=8192 |
| | FilterExec: x@0 = 4 |
| | MemoryExec: partitions=1, partition_sizes=[1] |
| | |
+---------------+---------------------------------------------------+
2 row(s) fetched.
Elapsed 0.005 seconds.
```
However, they look really bad on main (aka pre-release DataFusion 46):
```
> create table foo(x int, y int) as values (1,2), (3,4);
0 row(s) fetched.
Elapsed 0.018 seconds.
> 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: target_batch_size=8192
FilterExec: x@0 = 4
DataSourceExec: partitions=1, partition_sizes=[1]
|
+---------------+--------------------------------------------------------------------------------------------------------------------------+
2 row(s) fetched.
Elapsed 0.013 seconds.
```
### To Reproduce
```sql
create table foo(x int, y int) as values (1,2), (3,4);
explain select * from foo where x = 4;
```
### Expected behavior
I expect the cells to be correctly rendered like in DataFUsion 45
### Additional context
This appears to be another issue introduced by
- https://github.com/apache/datafusion/pull/14877
--
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] datafusion-cli regression: explain plan output looks bad (error rendering multi-lines) [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #14947:
URL: https://github.com/apache/datafusion/issues/14947#issuecomment-2691583601
If we can't figure this out by tomorrow, I am thinking we can revert https://github.com/apache/datafusion/pull/14877. I will prepare a PR to do so as a backup
--
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] datafusion-cli regression: explain plan output looks bad (error rendering multi-lines) [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #14947:
URL: https://github.com/apache/datafusion/issues/14947#issuecomment-2691604189
I made a revert PR:
- https://github.com/apache/datafusion/pull/14948
--
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] datafusion-cli regression: explain plan output looks bad [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #14947:
URL: https://github.com/apache/datafusion/issues/14947#issuecomment-2691564690
I think the issue is the code added in https://github.com/apache/datafusion/pull/14877 doesn't handle multiple lines
--
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] datafusion-cli regression: explain plan output looks bad (error rendering multi-lines) [datafusion]
Posted by "xudong963 (via GitHub)" <gi...@apache.org>.
xudong963 closed issue #14947: datafusion-cli regression: explain plan output looks bad (error rendering multi-lines)
URL: https://github.com/apache/datafusion/issues/14947
--
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