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

Remove scan_empty method from LogicalPlanBuilder #2568

Merged
merged 4 commits into from
May 18, 2022

Conversation

andygrove
Copy link
Member

Which issue does this PR close?

Part of #2536

Rationale for this change

  • LogicalPlanBuilder should be in the same crate as LogicalPlan
  • LogicalPlanBuilder should not need to know about data sources & object stores but just TableSource
  • scan_empty is only used from tests

What changes are included in this PR?

  • Move scan_empty from LogicalPlanBuilder to tests

Are there any user-facing changes?

Yes, this changes the LogicalPlanBuilder API

@andygrove andygrove added the api change Changes the API exposed to users of the crate label May 18, 2022
@andygrove andygrove self-assigned this May 18, 2022
@@ -52,7 +52,7 @@ pub const UNNAMED_TABLE: &str = "?table?";

/// Builder for logical plans
///
/// ```
/// ``` ignore
Copy link
Member Author

Choose a reason for hiding this comment

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

This will be addressed as part of #2308 once we move the builder into the datafusion-expr crate

projection: Option<Vec<usize>>,
) -> Result<LogicalPlanBuilder, DataFusionError> {
let table_schema = Arc::new(table_schema.clone());
let provider = Arc::new(EmptyTable::new(table_schema));
Copy link
Contributor

Choose a reason for hiding this comment

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

TIL: EmptyTable

@github-actions github-actions bot added ballista datafusion Changes in the datafusion crate labels May 18, 2022
@andygrove andygrove merged commit 5399f1c into apache:master May 18, 2022
@alamb
Copy link
Contributor

alamb commented May 18, 2022

🚅

@andygrove andygrove deleted the remove-scan-empty branch January 27, 2023 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api change Changes the API exposed to users of the crate datafusion Changes in the datafusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants