Skip to content

Conversation

@gruuya
Copy link
Contributor

@gruuya gruuya commented Dec 3, 2024

Which issue does this PR close?

Relates to

Rationale for this change

Make use of the implicit convention for nested list field names, and remove large number of item literals throughout the code.

What changes are included in this PR?

Use Field::new_list_field instead of Field::new with explicit item name as the naming convention.

Are these changes tested?

All existing tests pass.

Are there any user-facing changes?

None.

This also makes the naming of the nested field implicit, and removes a bunch of item literals.
@github-actions github-actions bot added sql SQL Planner logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates optimizer Optimizer rules core Core DataFusion crate substrait Changes to the substrait crate common Related to common crate proto Related to proto crate functions Changes to functions implementation labels Dec 3, 2024
Copy link
Member

@findepi findepi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as far as i verified this, only Field::new("item", .. are changed here.

Copy link
Member

@Weijun-H Weijun-H left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @gruuya 👍

@alamb
Copy link
Contributor

alamb commented Dec 4, 2024

🚀

@alamb alamb merged commit a747225 into apache:main Dec 4, 2024
25 checks passed
@alamb
Copy link
Contributor

alamb commented Dec 4, 2024

Thanks @gruuya and @Weijun-H and @findepi for the reviews

@gruuya gruuya deleted the consolidate-list-item-field branch December 4, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to common crate core Core DataFusion crate functions Changes to functions implementation logical-expr Logical plan and expressions optimizer Optimizer rules physical-expr Changes to the physical-expr crates proto Related to proto crate sql SQL Planner substrait Changes to the substrait crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants