Skip to content

Conversation

@adriangb
Copy link
Contributor

@adriangb adriangb commented Dec 1, 2025

Closes #19029

- Session extensions via `context.session_config().extensions()`

This enables optimizer rules to access custom extensions registered with the session, which was not possible with the old `&ConfigOptions` parameter.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe change to extension should be mentioned as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we just made something that was private public - is that really worth mentioning?

Copy link
Contributor

Choose a reason for hiding this comment

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

You’re right, the previous methods remain unchanged so from the user’s perspective nothing changes. My apologies.

Copy link
Contributor

@2010YOUY01 2010YOUY01 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!


**Who is affected:**

- Users who have implemented custom `PhysicalOptimizerRule` implementations
Copy link
Member

Choose a reason for hiding this comment

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

cc @zhuqi-lucas / @jcsherin , we need to make some changes for the next upgrade

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry about this! At least it should be pretty mechanical and you'll have several releases...

Co-authored-by: Yongting You <2010youy01@gmail.com>
@adriangb adriangb added this pull request to the merge queue Dec 2, 2025
Merged via the queue into apache:main with commit 7b4593f Dec 2, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add upgrade guide for PhysicalOptimizerRule::optimize_plan

5 participants