-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[0.9.5] ORDER BY time desc doesn't work when used with LIMIT or GROUP BY tag #4861
Comments
A recurrence of symptoms similar to #4235 |
I'm not sure if title was correctly updated, for sure this is not the case with 0.9.4.2, where I just had this issue:
So it's without limit and without group by, but still not working (generally, with |
@piotr-piatkowski you are describing the symptoms in #4235. We don't know yet whether this is a different issue, as I haven't tried to repro this in 0.9.5. |
Running InfluxDB 0.9.5 I'm seeing a similar issue to @nornagon: 0 results with This seems to be an intermittent issue, as restarting InfluxDB results in |
I'm using 0.9.6.1 and seeing a very similar behaviour. Running a query with |
I think I'm facing the same issuel like @larsakeekstrand. A query like |
I can't reproduce this on the 0.11 release candidate so I think we fixed this issue as part of the refactor. Please try it out and reopen if the issue persists. Thanks! Test case I used for verifying:
|
In my InfluxDB v1.2.1 , it works when LIMIT is after ORDER BY. |
Running influxdb 0.9.5.
Running
SELECT <stuff> ORDER BY time ASC LIMIT 5
returns 5 results, butSELECT <stuff> ORDER BY time DESC LIMIT 5
returns 0 results. Specifically:returns 5 results, while
returns 0 results.
Also,
GROUP BY
withORDER BY time DESC
has weird behaviour which I'm yet to be able to characterize sufficiently to explain. e.g.Produces just 3 series results, whereas the
ORDER BY time ASC
version produces 24 on the same interval, and doesn't produce the latest data for those series, and doesn't even produce consistently bad data: the timestamp on the 3 series it does return appears to be a random timestamp within the 10m time range specified by the query, despite all 3 series having many datapoints (around 1 per second) in the time range. When I tried the query again some time later, it returned just a single (different) series.Even without
GROUP BY
there's weirdness going on.shows 5 data points from a single series, which is not the series with the most recent temperature data.
The text was updated successfully, but these errors were encountered: