Skip to content

Unify Metadata Handing: use FieldMetadata in Expr::Alias and ExprSchemable - #16320

Merged
alamb merged 2 commits into
apache:mainfrom
alamb:alamb/field_metadata2
Jun 17, 2025
Merged

Unify Metadata Handing: use FieldMetadata in Expr::Alias and ExprSchemable#16320
alamb merged 2 commits into
apache:mainfrom
alamb:alamb/field_metadata2

Conversation

@alamb

@alamb alamb commented Jun 7, 2025

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

We are working metadata through DataFusion as part of supporting extension types
so having a single unified representation to work on will make the code easier
to do. I added FieldMetadata to avoid the use of BTreeMap direcectly, but found
there were still places that used HashMap to pass metadata around directly

What changes are included in this PR?

Let's use FieldMetadata everywhere

Are these changes tested?

By CI

Are there any user-facing changes?

This is an API change, but I think it sets us up for unified and efficient metadata handling in DataFusion

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

Labels

core Core DataFusion crate documentation Improvements or additions to documentation logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates proto Related to proto crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants