-
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.10.0] Alias doesn't work when used with GROUP BY * #5567
Comments
@ivanscattergood What version of InfluxDB and operating system/distribution are you using? |
[root@influx ~]# uname -a [root@influx ~]# influx |
@ivanscattergood I'm unable to reproduce this issue with some sample Telegraf data on
So it may have something to do with your data or your environment. Is this a clustered setup, or single node? Would it be possible to provide us with sample data to reproduce on? |
Hi, Let me investigate further |
Ah, okay. You may want to try converting the shards using the influx_tsm conversion tool and see if the problem persists. |
Cool, thanks for the help @rossmcdonald |
@rossmcdonald please, can you give it another look? I'm able to reproduce this with v0.10.0 stable. The
|
@zstyblik Good catch. It does seem that the
|
It's important to note that this issue occurs only when being used with |
I can reproduce this (or something very much like it) without
Expected same data when filtering using the alias; got none. This db has been using tsm1 from the start. |
@brettdh @rossmcdonald so, it might be |
I believe the no-results behavior also occurs if I remove the limit. I will
|
This appears to work in the new query engine that was released as part of 0.11. Please try again using the latest version of InfluxDB and reopen if this is still an issue. Thanks! |
Hi,
I am trying to alias a column name and it doesn't work unless I use a function.
Select "max-disk-usage" as "value" from "SYSTEM_MSG-SPOOL" WHERE time >= '2016-01-13 15:07:35.326' and time < '2016-02-07 15:07:35.326' GROUP BY * limit 1
name: SYSTEM_MSG-SPOOL
tags: ROUTER_NAME=sol-ldn-qagc2
time max-disk-usage
1454666402940000000 50000
But if I use mean then it works
Select mean("max-disk-usage") as "value" from "SYSTEM_MSG-SPOOL" WHERE time >= '2016-01-13 15:07:35.326' and time < '2016-02-07 15:07:35.326' GROUP BY * limit 1
name: SYSTEM_MSG-SPOOL
tags: ROUTER_NAME=sol-ldn-qagc2
time value
1452697655326000000 50000
The text was updated successfully, but these errors were encountered: