Skip to content

feat: Propagate orderings through struct-producing projections#21218

Open
rkrishn7 wants to merge 2 commits intoapache:mainfrom
rkrishn7:struct-order-propagation
Open

feat: Propagate orderings through struct-producing projections#21218
rkrishn7 wants to merge 2 commits intoapache:mainfrom
rkrishn7:struct-order-propagation

Conversation

@rkrishn7
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

What changes are included in this PR?

  • Adds ScalarUDFImpl::struct_field_mapping
  • Adds logic in ProjectionMapping to decompose struct-producing functions into their field-level mapping entries so that orderings propagate through struct projections
  • Adds unit tests/SLT

Are these changes tested?

Yes.

Are there any user-facing changes?

N/A

@github-actions github-actions bot added logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt) functions Changes to functions implementation labels Mar 28, 2026
@rkrishn7
Copy link
Copy Markdown
Contributor Author

cc @xudong963

Copy link
Copy Markdown
Member

@xudong963 xudong963 left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Propagate orderings through struct-producing projections

2 participants