Skip to content

Conversation

Kontinuation
Copy link
Member

Which issue does this PR close?

Rationale for this change

The metadata of fields created by VALUES SQL expression were lost during the creation of LogicalPlan::Values logical plan node. This patch tries to preserve the field metadata.

What changes are included in this PR?

This patch takes the metadata of fields in VALUES expression into consideration. The schema of VALUES expression will contain field with proper metadata.

Are these changes tested?

  1. Added a unit test
  2. Added the repro in the issue to the user_defined_scalar_functions test

Are there any user-facing changes?

No public API changes.

@github-actions github-actions bot added logical-expr Logical plan and expressions core Core DataFusion crate labels Sep 11, 2025
@Kontinuation Kontinuation marked this pull request as ready for review September 11, 2025 17:48
@Kontinuation
Copy link
Member Author

CC @paleolimbot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate logical-expr Logical plan and expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extension metadata dropped from literals in SQL VALUES clause
1 participant