Skip to content

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
/// 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

@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants