-
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
[feature request] query to return N most recent points in a measurement, with fields #3141
Comments
@contentfree what do you mean by '(at least) one record per series'. When I run the query you've specified I only get one record per series. |
is equivalent to
Does writing out the fields give you what you expect?
|
@gunnaraasen is correct, Docs could be clearer on this. Opened https://github.com/influxdb/influxdb.com/issues/73 to fix it. |
That's very confusing and unexpected. Why is If I have tagged measurements by host, for example, and I do this for hundreds of hosts, when I ask for 1 item without providing a tag then I'd be very surprised to get hundreds of records back. It should not group by anything unless I tell it to group by something, no? So how do I get all fields from a measurement without writing out each field and without it group by all tags? How do I get the most recent n records from a measurement? |
@contentfree the implicit
I don't think there is a way to do this currently. It's a reasonable feature request. |
Clarifying: This new function would return the N first matching points in the measurement, regardless of series. |
|
Just upgraded today. I have a measurement with ~10k records. The expectation, obviously, that
select * from my_measurement limit 1
would return one record. However, it seems to return (at least) one record per series in a measurement. This was surprising.The text was updated successfully, but these errors were encountered: