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

Inconsistent Boolean Field Values #24971

Open
tejasharwin opened this issue May 7, 2024 · 1 comment
Open

Inconsistent Boolean Field Values #24971

tejasharwin opened this issue May 7, 2024 · 1 comment

Comments

@tejasharwin
Copy link

Problem statement

I have two queries where the only difference between the queries is Query 2 has a narrower time range than Query 1. Note that Query 2's timerange is still captured by Query 1.

Given the above info, both my queries are showing different values for my Boolean field called 'omit' which is super strange. I expect Query 1's result to be exactly equal to Query 2's result for Query 2's timestamps.

Steps to reproduce:

  1. Query a table with a Boolean field with a wide timerange from t1 to t2.
  2. Make the same query but this time with a narrower time range but still within t1 and t2.
  3. Compare the results of the Boolean field.

here is my Query 1 along with it's result:

SELECT var1, omit
FROM "bucket".."table"
WHERE time >= '2024-03-18T16:00:00Z' and time <= '2024-04-01T13:52:00Z' and id = 'abcdef'

Query 1 Result:
the omit field takes values false for 04/01/2024 13:49:00 and 04/01/2024 13:51:00
image

here is my Query 2 along with it's result:

SELECT var1, omit
FROM "bucket".."table"
WHERE time >= '2024-04-01T113:42:00Z' and time <= '2024-04-01T13:52:00Z' and id = 'abcdef'

Query 2 Result:
the omit field takes values true for 04/01/2024 13:49:00 and 04/01/2024 13:51:00

image

Expected behaviour:
I expected to see the same values for the Boolean field.

Actual behaviour:
I saw the omit field to be False in Query 1 and true in Query 2 for timestamps: 04/01/2024 13:49:00 and 04/01/2024 13:51:00. Therefore, these query results are inconsistent.

Environment info:

  • InfluxDB 2.7
@tejasharwin
Copy link
Author

cc: @sanderson

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

1 participant