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

[HZ-561] Implement EXISTS and NOT EXISTS expressions #19729

Merged
merged 35 commits into from
Oct 21, 2021
Merged

[HZ-561] Implement EXISTS and NOT EXISTS expressions #19729

merged 35 commits into from
Oct 21, 2021

Conversation

hakanmemisoglu
Copy link
Contributor

@hakanmemisoglu hakanmemisoglu commented Oct 6, 2021

Implementation of EXISTS(...) and NOT EXISTS(...) expressions for SQL

NOTE:
This implementation has different visibility semantics for the rows originated from right input.

@hz-devops-test

This comment has been minimized.

@hz-devops-test

This comment has been minimized.

@hz-devops-test

This comment has been minimized.

@hz-devops-test

This comment has been minimized.

@hz-devops-test

This comment has been minimized.

@AyberkSorgun AyberkSorgun changed the title Implement EXISTS and NOT EXISTS expressions [HZ-561] Implement EXISTS and NOT EXISTS expressions Oct 18, 2021
@hz-devops-test

This comment has been minimized.

@hz-devops-test

This comment has been minimized.

@hz-devops-test

This comment has been minimized.

@hz-devops-test

This comment has been minimized.

@@ -93,6 +93,11 @@ public void consume(Inbox inbox) {
offset--;
}

if (limit <= 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it needed? All tests pass without it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was needed for the previous implementation because it was breaking LIMIT 0 queries in other SQL tests.
Interestingly, it works now. I am planning to keep it because if limit == 0, then the logic in the consume is wrong.

@hz-devops-test

This comment has been minimized.

@hz-devops-test

This comment has been minimized.

Grzegorz Gierlach and others added 4 commits October 20, 2021 12:57
* Remove assertions
* Use kind equality directly
* Improve operator operand count and type checks
@hz-devops-test

This comment has been minimized.

@hakanmemisoglu
Copy link
Contributor Author

run-lab-run

@hakanmemisoglu hakanmemisoglu merged commit a6f978a into hazelcast:master Oct 21, 2021
@hazelcast hazelcast deleted a comment from hakanmemisoglu Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants