Skip to content

Conversation

sunng87
Copy link
Member

@sunng87 sunng87 commented Aug 30, 2025

Postgres resolves identified after projection resolved, so it's possible to use unqualified identifier in order by or where clause, even if all tables are aliased. However, this is not supported by datafusion.

In this patch, we inference qualifier for those unqualified ids in order by and where, by checking any wildcard field in select projection.

This is the very first step of implementing this rule.

@sunng87 sunng87 merged commit daadf6f into master Aug 30, 2025
5 of 6 checks passed
@sunng87 sunng87 deleted the feat/resolve-unqualified-expr branch August 30, 2025 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant