-
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
[MINOR]: Extract aggregate topk function to aggregate_topk.slt
#8948
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 -- I hit the same thing as well
aggregate.slt
I think this skips the rule it is intended to test if there are multiple |
That being said, I think this code could / should be expanded to include multiple |
IIRC, it conceptually supports anything that implements |
What if we change top order by to select trace_id, other, MIN(timestamp) from traces group by trace_id, other order by MIN(timestamp) asc limit 4; to select trace_id, other, MIN(timestamp) from traces group by trace_id, other order by trace_id asc limit 4; instead of select trace_id, other, MIN(timestamp) from traces group by trace_id, other order by MIN(timestamp) asc, trace_id DESC limit 4; Will it test desired property? |
I don't think so -- this test is pretty specific to ordering by MIN(..) as it invokes a special code path. However, given this is not reflected in the tests I think that is a gap. Here is my suggestion:
My rationale for moving to a new file is that then this failure won't mask other failures in the (very large) aggregates.slt file and it will help to make that file more manageable |
I moved the topk aggregate tests to their own file as your suggestion in 1 (Please note that I retracted the changes in the tests, this PR is just a restructure PR now.). |
aggregate.slt
aggregate_topk.slt
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 @mustafasrepo
I'll merge this PR and we can keep working to make the test deterministic as a follow on PR
Update: this PR just moves a intermittently failing test into its own file. It still fails on different platforms
Which issue does this PR close?
Closes #.
Rationale for this change
Sometimes in my locale, the tests in this PR fails. However, in CI it seems that there is no problem. However, with current configuration, there are more than 1 possible valid result for these queries.
With this PR I changed these tests such that there is only one possible answer.
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?