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
The abstract expression sequence is: column IN (constant)
To Reproduce
Assume that we execute the following statement under a database named testdb.
DROP TABLE IF EXISTS t1;
CREATE TABLE t1(time TIMESTAMP, c1 INT);
INSERT INTO t1(time, c1) VALUES (1641024000000, 1);
# query 1
SELECT c1 FROM t1 WHERE c1 IN (1.7);
# query 2
SELECT c1 FROM t1 WHERE c1 == 1.7;
Hello, TDengine team. In Query 1, when the IN operator is used for conditional filtering on an integer column, if the constant expression for the IN operator is a floating-point number, it can still filter out values even if their numeric values are not equal. Theoretically, Query 2 is equivalent to Query 1.
The text was updated successfully, but these errors were encountered:
Bug Description
The abstract expression sequence is:
column IN (constant)
To Reproduce
Assume that we execute the following statement under a database named testdb.
Expected Behavior
Query 1 returned result set: empty set
Query 2 returned result set: empty set
Actual behaviour
Query 1 returned result set: 1
Query 2 returned result set: empty set
Environment
Additional Context
Hello, TDengine team. In Query 1, when the
IN
operator is used for conditional filtering on an integer column, if the constant expression for the IN operator is a floating-point number, it can still filter out values even if their numeric values are not equal. Theoretically, Query 2 is equivalent to Query 1.The text was updated successfully, but these errors were encountered: