irenjj commented on issue #15395: URL: https://github.com/apache/datafusion/issues/15395#issuecomment-2753138770
> Here is a related ticket: > > * [beautify default column namesย #2027](https://github.com/apache/datafusion/issues/2027) > > > Created an issue to ask what others think - the change is quite simple, but maybe there were previous discussions or consequences I don't see? > > I think [@irenjj](https://github.com/irenjj) added similar code recently to support new duckdb style `tree` explain plans via `Expr::sql_name`: > > * [Simplify display format of `AggregateFunctionExpr`, add `Expr::sql_name`ย #15253](https://github.com/apache/datafusion/pull/15253) > > However, it seems like the display is still somewhat ๐คฎ (I think b/c the column name is bad) > > > explain format tree select 3, array_length([1, 2, 4, 5, 10000, 2.4]);; > +---------------+-------------------------------+ > | plan_type | plan | > +---------------+-------------------------------+ > | physical_plan | โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | > | | โ ProjectionExec โ | > | | โ -------------------- โ | > | | โ Int64(3): 3 โ | > | | โ โ | > | | โ array_length(make_array โ | > | | โ (Int64(1),Int64(2) โ | > | | โ ,Int64(4),Int64(5) โ | > | | โ ,Int64(10000),Float64 โ | > | | โ (2.4))): โ | > | | โ 6 โ | > | | โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ | > | | โโโโโโโโโโโโโโโดโโโโโโโโโโโโโโ | > | | โ PlaceholderRowExec โ | > | | โโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | > | | | > +---------------+-------------------------------+ > 1 row(s) fetched. > Elapsed 0.007 seconds. > Perhaps we should switch to `tree` by default as well as use `sql_name` for the column name ๐ค > > * [[DISCUSS] Switch to `tree` explain by defaultย #15343](https://github.com/apache/datafusion/issues/15343) `sql_name` only works in aggr func, need more effort for projection, window, ... -- 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-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org