-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 some zero column tests covering LIMIT, GROUP BY, WHERE, JOIN, and WINDOW #11624
Conversation
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.
Thank you @Kev1n8 🙏
FYI @kazuyukitanimura as the original filer of #5713
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.
Thank you for this contribution @Kev1n8 -- I double checked the tests and I think the coverage is good.
@@ -1225,6 +1225,63 @@ statement ok | |||
SELECT * EXCEPT(a, b, c, d) | |||
FROM table1 | |||
|
|||
# try zero column with LIMIT, 1 row but empty | |||
statement ok |
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.
I had these tests checked out locally to double check they actually did produce no columns but a single row and by using query
rather than statement
Thing looks great to me, so I pushed a commit to this branch to update the tests
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.
🤔 that seems to cause errors on mac, so I reverted the change
I also updated the description to say this PR closes #5713, unless there is additional work we know about |
This reverts commit fd381fc.
Thanks for reviewing :) |
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.
🚀 |
Which issue does this PR close?
Closes: #5713.
Rationale for this change
To make sure there are not any other execs having issues when it comes to zero-column batches.
What changes are included in this PR?
I added some tests to sqllogictest to see if statements work with no column when using LIMIT, GROUP BY, WHERE JOIN and WINDOW. Please let me know if there's anything to improve or wrong.
Are these changes tested?
PASSed the sqllogictests.
Are there any user-facing changes?