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

Select multiple series #112

Closed
william-p opened this issue Dec 9, 2013 · 2 comments
Closed

Select multiple series #112

william-p opened this issue Dec 9, 2013 · 2 comments
Milestone

Comments

@william-p
Copy link

Hi,
Can i select multiple series ?

See output:



    db> select * from local-root.workers.nb_hit limit 3;
    ┌──────────────────┬─────────────────┬────────────────┬───────┐
    │       time       │ sequence_number │ location       │ value │
    ├──────────────────┼─────────────────┼────────────────┼───────┤
    │ 9/12/13 15:52:00 │ 1251580001      │ FR:VSS:ILD:DC  │ 3     │
    │ 9/12/13 15:52:00 │ 1251570001      │ FR:SHB:FRE:A9M │ 1     │
    │ 9/12/13 15:52:00 │ 1251560001      │ CA:BHS:OVH:DC  │ 1     │
    └──────────────────┴─────────────────┴────────────────┴───────┘

    db> select * from local-root.workers.nb_job limit 3;
    ┌──────────────────┬─────────────────┬────────────────┬───────┐
    │       time       │ sequence_number │ location       │ value │
    ├──────────────────┼─────────────────┼────────────────┼───────┤
    │ 9/12/13 15:52:00 │ 1251300001      │ FR:VSS:ILD:DC  │ 6     │
    │ 9/12/13 15:52:00 │ 1251290001      │ FR:SHB:FRE:A9M │ 1     │
    │ 9/12/13 15:52:00 │ 1251280001      │ CA:BHS:OVH:DC  │ 1     │
    └──────────────────┴─────────────────┴────────────────┴───────┘

    db> select * from local-root.workers.nb_hit, local-root.workers.nb_job;
    db> ✘ Error: Error at 441358232:32597. syntax error, unexpected ',', expecting $end

InfluxDB v0.4.0.rc2 (git: e25fe4997a36997d293c271f1dadf7670961b0b2)

i've missing something ?

Thanks

@jvshahid
Copy link
Contributor

jvshahid commented Dec 9, 2013

Currently, only regex are supported. I thought there was an issue to address this, but i can't seem to find it right now. It's pretty straight forward to implement it, so I'll try to get to it some time today. For now if you want to select from multiple series please use regex instead, e.g. select * from /local-root\.workers\.nb_(hit|job)/ or something similar.

@william-p
Copy link
Author

Okay thanks @jvshahid

@ghost ghost assigned jvshahid Dec 10, 2013
@jvshahid jvshahid modified the milestones: 0.8.0, 0.7.0 May 2, 2014
peekeri added a commit to peekeri/influxdb that referenced this issue May 23, 2014
Adjust parser to understand queries like 'SELECT * FROM series1, series2, ...'.
It seems that selecting from multiple series was supported everywhere else, but
parser just could not understand the syntax.
@jvshahid jvshahid modified the milestones: 0.7.0, 0.8.0 May 23, 2014
pauldix pushed a commit that referenced this issue May 27, 2014
Adjust parser to understand queries like 'SELECT * FROM series1, series2, ...'.
It seems that selecting from multiple series was supported everywhere else, but
parser just could not understand the syntax.
jvshahid pushed a commit that referenced this issue Aug 12, 2014
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