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 issue #1399 EXISTS doesn't handle non-existent labels (#1400) #1403

Merged

Conversation

jrgemignani
Copy link
Contributor

Fixed issue #1399 where EXISTS doesn't handle non-existent labels. However, the issue actually is due to the extra processing (read: extra distance between the AST nodes) that prevented the transform logic from being able to resolve variables created in previous clauses further than one parent up.

Added logic to allow the find_variable function to search up the parent parse nodes.

Added regression tests to cover these cases.

@github-actions github-actions bot added the PG14 PostgreSQL14 label Nov 17, 2023
…he#1400)

Fixed issue apache#1399 where EXISTS doesn't handle non-existent labels.
However, the issue actually is due to the extra processing (read:
extra distance between the AST nodes) that prevented the transform
logic from being able to resolve variables created in previous clauses
further than one parent up.

Added logic to allow the `find_variable` function to search up the
parent parse nodes.

Added regression tests to cover these cases.
@MuhammadTahaNaveed MuhammadTahaNaveed merged commit 0c264d7 into apache:PG14 Nov 17, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PG14 PostgreSQL14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants