Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[minor] Consolidate construction of the list field #13627

Merged
merged 1 commit into from
Dec 4, 2024

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 Physical Expressions optimizer Optimizer rules core Core DataFusion crate substrait common Related to common crate proto Related to proto crate functions 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 logical-expr Logical plan and expressions optimizer Optimizer rules physical-expr Physical Expressions proto Related to proto crate sql SQL Planner substrait
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants