Skip to content
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

Aliasing the time column (SELECT time AS foo) no longer works #6296

Closed
isilien opened this issue Apr 12, 2016 · 0 comments
Closed

Aliasing the time column (SELECT time AS foo) no longer works #6296

isilien opened this issue Apr 12, 2016 · 0 comments

Comments

@isilien
Copy link

isilien commented Apr 12, 2016

On 0.10, we were able to do the following query:

> SELECT time AS timestamp, source, value FROM foo WHERE source = 'bar'
name: foo
-----------------
timestamp             source     value
1457412987531000000   bar        -0.194359764457

On 0.11+ (tested on 0.11.0 and 0.12.1), I can no longer alias time to timestamp, or any other string.

> SELECT time AS timestamp, source, value FROM foo WHERE source = 'bar'
name: foo
-----------------
time                  source     value
1457412987531000000   bar        -0.194359764457

Aliasing the other columns (tags and fields) still work:

> SELECT time AS timestamp, source AS foo, value AS bar FROM baz WHERE source = 'qux'
name: baz
-----------------
time                   foo    bar
1457412987531000000    qux    -0.194359764457

Tried quoting the alias, that doesn't help either.
(64-bit Ubuntu 14.04)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants