influxdb
influxdb copied to clipboard
[0.9.5] Empty tag confuses query return output from TOP()
The top value in pies has the tag set kind = pumpkin and quality is empty. When I query for the tags in this order (kind,quality), the output is fine:
> SELECT TOP(value,1),kind,quality FROM pies
name: pies
----------
time top kind quality
2015-11-05T18:48:58.480032913Z 2000 pumpkin
When I reverse the order of the tags (quality,kind), the output is off:
> SELECT TOP(value,1),quality,kind FROM pies
name: pies
----------
time top quality kind
2015-11-05T18:48:58.480032913Z 2000 pumpkin
The same output in JSON:
{
"results": [
{
"series": [
{
"name": "pies",
"columns": [
"time",
"top",
"quality",
"kind"
],
"values": [
[
1446749338480032913,
2000,
"pumpkin"
]
]
}
]
}
]
}
I get the same results when I run:
SELECT TOP(value,quality,kind,1) FROM pies
Closing this because the query engine refactor means the implementation of TOP is completely different and this bug probably doesn't exist anymore. Please comment if you still see this happening with the latest version. Thanks.