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

Query with multiple time ranges return no data #7451

Closed
ryantxu opened this issue Oct 11, 2016 · 1 comment
Closed

Query with multiple time ranges return no data #7451

ryantxu opened this issue Oct 11, 2016 · 1 comment

Comments

@ryantxu
Copy link

ryantxu commented Oct 11, 2016

This may be expected, but when I query with multiple time ranges, it gets no results.

Bug report

System info:

Branch Commit Version
master "37992377a55fbc138b2c01edd4deffed64b53989" "1.0.0"

Steps to reproduce:

  1. Index some data

  2. Query for one time range:

    SELECT count(field) FROM trend WHERE (time > now() - 10m AND time < now() - 9m)

This gives me 60 samples.

  1. Query for another time range:

    SELECT count(field) FROM trend WHERE (time > now() - 5m AND time < now() - 4m)

This also gives me 60 samples

  1. Query for both time ranges

    SELECT count(field) FROM trend WHERE (time > now() - 10m AND time < now() - 9m) OR (time > now() - 5m AND time < now() - 4m)

Expected behavior:

I would expect 120 samples -- since we selected over two ranges. Or an error if selecting multiple ranges is not allowed

Actual behavior:

response is OK, but no results

@jwilder
Copy link
Contributor

jwilder commented Oct 11, 2016

This is a duplicate of #3290.

@jwilder jwilder closed this as completed Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants