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

Only unnest source for EmptyRelation #15159

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blaginin
Copy link
Contributor

@blaginin blaginin commented Mar 11, 2025

Which issue does this PR close?

Rationale for this change

We currently override source losing some data, see issue for examples

What changes are included in this PR?

Are these changes tested?

Added tests

Are there any user-facing changes?

No

Comment on lines +382 to +384
if matches!(
projection.input.as_ref(),
LogicalPlan::EmptyRelation(_)
Copy link
Contributor

Choose a reason for hiding this comment

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

It's better to add some comments to explain why we match EmptyRelation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Different unnests on plan_to_sql are merged
2 participants