-
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
More columns than values in query response #3608
Comments
Can you be more precise? What in the output don't you like? |
Not sure if you noticed it, but the issue here is that Not that i'm against it being included. But if it's included, include it in the values too! |
Great! Ping me here when this is merged and I will test it. I think that will fix the issue. |
@aviau the code @corylanou referenced has been checked in and is in the nightly build. Can you try to repro with the latest? |
With the same test, this is the new result:
Thanks! |
Hello,
I am sure this is a duplicate of something somewhere... but here goes:
Using
mean()
in a query breaks the response format: there are more columns than values in the query response.With
mean()
:Query:
SELECT host, mean(zzz) as hello, host, value as value, zzz, host FROM cpu_value
Response:
{"series": [{"values": [["1970-01-01T00:00:00Z", 34545]], "name": "cpu_value", "columns": ["time", "host", "hello", "host", "value", "zzz", "host"], "tags": {"host": "server01"}}]}
Without
mean()
:Query:
SELECT host, zzz as hello, host, value as value, zzz, host FROM cpu_value
Response:
{"series": [{"values": [["2015-08-10T14:03:44.833892297Z", 34545, 2.34, 34545]], "name": "cpu_value", "columns": ["time", "zzz", "value", "zzz"], "tags": {"host": "server01"}}]}
easy reproduction:
This is the script I used to test this:
See the influxdb-python issue: influxdata/influxdb-python#228
The text was updated successfully, but these errors were encountered: