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(optimizer): only qualify coalesced USING columns if they exist in table schemas #3740

Merged
merged 3 commits into from
Jul 4, 2024

Conversation

georgesittas
Copy link
Collaborator

No description provided.

@@ -724,6 +732,7 @@ def __init__(self, scope: Scope, schema: Schema, infer_schema: bool = True):
self._unambiguous_columns: t.Optional[t.Mapping[str, str]] = None
self._all_columns: t.Optional[t.Set[str]] = None
self._infer_schema = infer_schema
self._get_source_columns_cache: t.Dict[t.Tuple[str, bool], t.Sequence[str]] = {}
Copy link
Owner

Choose a reason for hiding this comment

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

self._source_columns

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We already have _source_columns above

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Perhaps we can consolidate the two, lemme take a quick look..

@georgesittas georgesittas merged commit 2bdde22 into main Jul 4, 2024
6 checks passed
@georgesittas georgesittas deleted the jo/fix_using_with_coalesce_qualify branch July 4, 2024 18:34
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.

None yet

2 participants