Skip to content

Replace GetFieldAccessExpr::NamedStructField with ScalarFunction::Struct #9532

@jayzhan211

Description

@jayzhan211

Is your feature request related to a problem or challenge?

Follow up from #9492, we replace ListRange and ListIndex to array_slice and array element respectively.
NamedStructField is also possible to be rewritten to Struct function.

https://github.com/apache/arrow-datafusion/blob/f1f09653319aea3186c2b1f9ca103ef7030c2da1/datafusion/physical-expr/src/expressions/get_indexed_field.rs#L138-L162

Describe the solution you'd like

Replace NamedStructField with Struct function
I think it may be relative easy issue since it should be similar to #9492. But, not sure if it is easy enough to be a good first issue. I think you can consider it as good second issue 😆

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions