-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
LIMIT returns a non-deterministic series #3166
Comments
@beckettsean is it possible to check if this is still valid with the new query engine? |
It is still not deterministic in 0.11.1:
|
explicit
|
Ok, I'll track this as something to potentially work on for 0.13. |
jsternberg
added a commit
that referenced
this issue
Apr 18, 2016
The series keys within a tag set were previously not sorted which would cause the output to be non-deterministic. This sorts the output series by their keys so it has a consistent output especially when using limits. Fixes #3166.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using telegraf to write data, it writes a series for each CPU core, so I have 8 tag sets underneath the
cpu_system
measurement. Here's the most recent point from all 8 series:If I then run the select statement without selecting the tag (
cpu
) then I get the most recent point from a randomly selected series:(note that the timestamps are identical, and the values are all contained in the set of 8 above, and they do repeat randomly)
@pauldix and I agree this should be deterministic behavior. According to him, LIMIT should pull from the series with the lowest index. Since I'm on a single-node system the index should be consistent. However, the series chosen is not.
The text was updated successfully, but these errors were encountered: