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

Deprecate the use of datafusion_sql::ResolvedTableReference and TableReference #14365

Closed
wants to merge 2 commits into from

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jan 29, 2025

Which issue does this PR close?

Rationale for this change

Noticed while working on #14364 with @logan-keede

datafusion-sql publically re-exports stuff from datafusion_common:

pub use datafusion_common::{ResolvedTableReference, TableReference};

Which can then lead to unecessary explicit dependencies in Cargo.toml

What changes are included in this PR?

  1. Deprecate the re-export pub use
  2. Update references to avoid using datafusion-sql

Are these changes tested?

By CI/ compiler

Are there any user-facing changes?

@github-actions github-actions bot added sql SQL Planner optimizer Optimizer rules core Core DataFusion crate substrait labels Jan 29, 2025
#[deprecated(
since = "45.0.0",
note = "use datafusion_common::{ResolvedTableReference, TableReference}"
)]
pub use datafusion_common::{ResolvedTableReference, TableReference};
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 don't really know why this is publically re-exported but there is no reason to use it over what is in datafusion-common

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 substrait
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant