You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, TDengine team. In Query 1, we restrict column c0 to only take the value -100, which does not exist in our table. Using the AND operator, we combine this restriction on c0 with a restriction on c1 (c1 IS NOT NULL). Theoretically, this should result in no data being retrieved. However, the latest version of TDengine returns all non-null data, indicating a logical error. This error also occurs in window queries, for example: SELECT COUNT(c0), COUNT(c1), _wstart FROM t1 WHERE (c0 IN (-100)) AND (c1 IS NOT NULL) INTERVAL (100s); This query returns the value 2.
The text was updated successfully, but these errors were encountered:
Bug Description
The abstract expression sequence is:
column0 IN (constant) AND column1 IS [NOT] NULL
To Reproduce
Assume that we execute the following statement under a database named testdb.
Expected Behavior
Query 1 returned result set: empty set
Actual behaviour
Query 1 returned result set: 1 and 2
Environment
Additional Context
Hello, TDengine team. In Query 1, we restrict column
c0
to only take the value -100, which does not exist in our table. Using theAND
operator, we combine this restriction onc0
with a restriction onc1
(c1 IS NOT NULL
). Theoretically, this should result in no data being retrieved. However, the latest version of TDengine returns all non-null data, indicating a logical error. This error also occurs in window queries, for example:SELECT COUNT(c0), COUNT(c1), _wstart FROM t1 WHERE (c0 IN (-100)) AND (c1 IS NOT NULL) INTERVAL (100s);
This query returns the value 2.The text was updated successfully, but these errors were encountered: