Skip to content

Simplify the name function in datafusion #11782

@jayzhan211

Description

@jayzhan211

Is your feature request related to a problem or challenge?

There are display_name, create_name, write_name, impl fmt::Display for Expr, create_function_physical_name, create_physical_name, physical_name..

I hope we can have much more simplified and easy to use name function.
If we can standardize logical namd and physical name is a big plus. IIRC, the only expression that has gap between logical and physical name is Cast, and we probably do not need to.

This could also help #10274 a lot

Describe the solution you'd like

ideally we could keep impl fmt::Display for Expr and use format!() to get the String for display_name🤔
And, minimize the gap between logical name and physical name.

Describe alternatives you've considered

No response

Additional context

#11724 (comment)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions