Skip to content

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Aug 19, 2025

Which issue does this PR close?

Rationale for this change

As I was reviewing #16456 with @Jefffrey and @Dimchikkk, I found a file which contains expression planners for unicode and datetime functions, but is confusingly called UserDefinedFunctionPlanner

What changes are included in this PR?

  1. Break UserDefinedFunctionPlanner into two structs to follow the pattern in the rest of the module
  2. Deprecate UserDefinedFunctionPlanner

Are these changes tested?

By CI

Are there any user-facing changes?

@github-actions github-actions bot added core Core DataFusion crate functions Changes to functions implementation labels Aug 19, 2025
feature = "datetime_expressions",
feature = "unicode_expressions"
))]
Arc::new(functions::planner::UserDefinedFunctionPlanner),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

for some reason both datetime and unicode expressions were in the same planner, which is not the same pattern for the other features 🤷 -- so I propose making main follow the existing pattern

Copy link
Contributor

@Jefffrey Jefffrey left a comment

Choose a reason for hiding this comment

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

Makes sense to me 👍

@github-actions github-actions bot added the sql SQL Planner label Aug 20, 2025
@Jefffrey Jefffrey merged commit d64b7c3 into apache:main Aug 21, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate functions Changes to functions implementation sql SQL Planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants