Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ContextProvider naming: rename get_table_provider --> get_table_source, deprecate get_table_provider #7831

Merged
merged 4 commits into from
Oct 17, 2023

Conversation

lewiszlw
Copy link
Member

Which issue does this PR close?

Some field/method names are confused.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added sql SQL Planner optimizer Optimizer rules core Core DataFusion crate labels Oct 16, 2023
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you very much @lewiszlw -- this is a very nice change and improves the readability in my opinion. The only thing I think we should do is avoid the breaking API change (by leaving in a deprecated warning, which I described in the commnets)

Otherwise, this looks great. Thank you 🙏

datafusion/sql/src/planner.rs Show resolved Hide resolved
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @lewiszlw 🙏

@alamb alamb changed the title Improve naming Improve ContextProvider naming: get_table_provider --> get_table_source, deprecate get_table_provider Oct 16, 2023
@alamb alamb changed the title Improve ContextProvider naming: get_table_provider --> get_table_source, deprecate get_table_provider Improve ContextProvider naming: rename get_table_provider --> get_table_source, deprecate get_table_provider Oct 16, 2023
@alamb alamb merged commit 033b2ef into apache:main Oct 17, 2023
23 of 24 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 optimizer Optimizer rules sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants