-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Port tests in group_by.rs
to sqllogictest
#8834
Conversation
# GROUP BY using LIMIT | ||
query IP | ||
SELECT c2, MAX(t1) | ||
FROM timestamp_table | ||
GROUP BY c2 | ||
ORDER BY MAX(t1) DESC | ||
LIMIT 4; | ||
---- | ||
9 2020-12-19T00:00:00 | ||
8 2020-12-18T00:00:00 | ||
7 2020-12-17T00:00:00 | ||
6 2020-12-16T00:00:00 |
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.
This, along with the following EXPLAIN
query, is intended to cover the original group_by_limit
test. In the original test, the table used was different in that the trace_id
column was UTF8, vs. INT here. I am re-using the same table from the date_trunc
test here for convenience, but I believe this still maintains the assertions being made.
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 @hiltontj -- this looks good to me and is very much appreciated 🙏
Which issue does this PR close?
Closes #8202
Rationale for this change
See #6195
What changes are included in this PR?
datafusion/core/tests/sql/group_by.rs
togroup_by.slt
(formerlygroupby.slt
)group_by_date_trunc
group_by_limit
group_by_dictionary
group_by.rs
fileAre these changes tested?
Yes
Are there any user-facing changes?
No