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

fix: compound_field_access doesn't identifier qualifier. #15153

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

Conversation

chenkovsky
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

In sql_compound_field_access_to_expr, datafusion doesn't check whether prefix can be merged into qualifier,
but in sql_compound_identifier_to_expr, it does.

What changes are included in this PR?

update sql_compound_field_access_to_expr to identify if a compound expression (like a.b.c) should be treated as a column reference with a qualifier (like table.column)

Are these changes tested?

Unit test

Are there any user-facing changes?

No

@github-actions github-actions bot added sql SQL Planner core Core DataFusion crate labels Mar 11, 2025
adragomir added a commit to hstack/arrow-datafusion that referenced this pull request Mar 13, 2025
@jonahgao jonahgao self-requested a review March 14, 2025 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change in behavior for deep structure columns with the latest sql parser upgrade
1 participant