-
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.9.5] multiple OR tag
clauses return the results from only one clause
#4917
Comments
This is quite possibly related to #3290. |
@rkuchan can you repro with 0.9.5? |
I'm able to repro with 0.9.5.1:
|
OR tag
clauses return the results from only one clause
@benbjohnson another one for the rework of the query engine |
"OR" within time query doesnt work: SELECT MEAN(price) as avg_price FROM symbol_history where symbol_id = '142' and ((time > 1451053800s and time < 1451077200s)) group by time(1d) Returns: {"results":[{"series":[{"name":"symbol_history","columns":["time","avg_price"],"values":[["2015-12-25T14 SELECT MEAN(price) as avg_price FROM symbol_history where symbol_id = '142' and ((time > 1451053800s and time < 1451077200s) or (time > 1451313000s and time < 1451336400s)) group by time(1d) Returns: {"results":[{}]} Expected more results than in the first query |
Closing this since it seems to be a duplicate of #3290. #5152 represents a bug with dealing with tags (which this issue seems to allude to, but doesn't give a working example). I'm going to leave #5152 open since it has a reproducer I can use. In summary, there are two issues. One is with multiple time intervals and the other is when you mix tag and field conditions using |
Hi!
I've been tested some Influx quieries and found that OR operator works incorrectly when applied many times to one field.
First of all, i have a series with some points
![image](https://cloud.githubusercontent.com/assets/12170766/11421943/fd61a46a-9448-11e5-824f-a9ade21d1b64.png)
And perform Select for it with AND operator to select specific time range:
![image](https://cloud.githubusercontent.com/assets/12170766/11421973/49af3fe4-9449-11e5-9bab-2d8755bcd098.png)
Select * from MeasurementEvent where SensorAlias='S1' and (time>3 and time<6)
Works well! But when i want to find points, which are out if this range i get very strange result:
![image](https://cloud.githubusercontent.com/assets/12170766/11422021/a9c9c534-9449-11e5-9acf-872d29bc954f.png)
Select * from MeasurementEvent where SensorAlias='S1' and (time<3 OR time>6)
Also, this bug(is it?) affects quieries like this:
![image](https://cloud.githubusercontent.com/assets/12170766/11422092/3d938cbe-944a-11e5-9dd0-f7beffff958e.png)
Select * from MeasurementEvent where SensorAlias='S1' and (time=3 or time=4)
And the last one is really critical to me, since Influx now doesn't support nor join, neither merge.
The text was updated successfully, but these errors were encountered: