-
Notifications
You must be signed in to change notification settings - Fork 246
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
Add support to identify different set operators & allow chain of multiple set operators #138
Conversation
Thanks for the comments and spotting some of the oversights! |
…erator struct, remove opt_limit and opt_order change
What's the status on this? Once the current master is merged, is this ready for a final review? |
@mrks that depends. There is one bug still in there that is not yet closed. The bug is not something we added but already exists for the current system. The solution for that is relatively easy, but ugly as sin and we were stalling last week to see, if we can find a better solution. We could do the following: This is the only thing that is currently not done. |
Can't you iterate over the chained list of select statements and add the set operation to the end? Something like
No idea if bison likes that though. Also, could you add some tests with similar (multiple, different, nested, ...) set operations in the WITH part of the query? |
Hanging onto the event would mean that we have the wrong order of operation. We also cannot use the other Select statement because the set operation there could also be overwritten. We can add test with WITH Statements and more nested queries |
Let's discuss this on Wednesday. |
…he print function does not work properly with this WITH query, however the data structure is parsed correctly, as verified by the test.
@mrks I have added an explanation to the evaluation order of SetOperators as a comment. From our side this should be ready for your final review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing fundamental here, just trying to gain favors with posterity.
@mrks I think that I added all the requested changes. Let me know, if you think this is ready to merge |
Hi, @Dencrash. From the test case, I don't see that the |
From the comment in the source code. |
Do you mean a I think you're right. Thank's for pointing to that issue. #199 contains a patch addressing it. |
yea, selectOption was a typo |
Hi @Daniel-Xu , hi @mweisgut, |
Nevertheless, in the current version |
@mweisgut pointed out that INTERSECT binds more tightly than UNION and EXCEPT. [https://www.postgresql.org/docs/14/queries-union.html] |
Thanks for the response, this makes sense now. |
No description provided.