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 inline table scan analyzer rule #15201

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jayzhan211
Copy link
Contributor

Which issue does this PR close?

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 sqllogictest SQL Logic Tests (.slt) labels Mar 13, 2025
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.

Thanks @jayzhan211

I have a suggestion -- let me know what you think

I would also like to run planning benchmarks on this PR -- will do later

@@ -550,7 +550,29 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
0 => Ok(LogicalPlanBuilder::empty(true).build()?),
1 => {
let input = from.remove(0);
self.plan_table_with_joins(input, planner_context)
let table = self.plan_table_with_joins(input, planner_context)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

This will have the effect of only inlining table scans for SQL

Perhaps we could move the code into LogicalPlanBuilder so it also applies to dataframes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

both dataframe and sql works well now

@jayzhan211 jayzhan211 marked this pull request as draft March 13, 2025 14:47
@github-actions github-actions bot added logical-expr Logical plan and expressions and removed sql SQL Planner labels Mar 14, 2025
@jayzhan211 jayzhan211 marked this pull request as ready for review March 14, 2025 01:36
@jayzhan211 jayzhan211 requested a review from alamb March 14, 2025 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate logical-expr Logical plan and expressions optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants