sarutak commented on code in PR #7462:
URL: https://github.com/apache/arrow-datafusion/pull/7462#discussion_r1313248978
##########
datafusion/sqllogictest/test_files/predicates.slt:
##########
@@ -254,39 +254,45 @@ foo
fazzz
statement ok
-CREATE TABLE IF NOT EXISTS test_float AS
VALUES(1.2),(2.1),(NULL),('NaN'::double),('-NaN'::double);
+CREATE TABLE IF NOT EXISTS test_float AS VALUES
+ ('a', 1.2),
+ ('b', 2.1),
+ ('c', NULL),
+ ('d', 'NaN'::double),
+ ('e', '-NaN'::double)
+ ;
# IN expr for float
-query R
-SELECT * FROM test_float WHERE column1 IN (0.0, -1.2)
+query T
+SELECT column1 FROM test_float WHERE column2 IN (0.0, -1.2)
----
-query R
-SELECT * FROM test_float WHERE column1 IN (0.0, 1.2)
+query T
+SELECT column1 FROM test_float WHERE column2 IN (0.0, 1.2)
----
-1.2
+a
-query R
-SELECT * FROM test_float WHERE column1 IN (2.1, 1.2)
+query T
+SELECT column1 FROM test_float WHERE column2 IN (2.1, 1.2)
----
-1.2
-2.1
+a
+b
-query R
-SELECT * FROM test_float WHERE column1 IN (0.0, 1.2, NULL)
+query T
+SELECT column1 FROM test_float WHERE column2 IN (0.0, 1.2, NULL)
----
-1.2
+a
-query R
-SELECT * FROM test_float WHERE column1 IN (0.0, -1.2, NULL)
+query T
+SELECT column1 FROM test_float WHERE column2 IN (0.0, -1.2, NULL)
----
-query R
-SELECT * FROM test_float WHERE column1 IN (0.0, 1.2, 'NaN'::double,
'-NaN'::double)
+query T
+SELECT column1 FROM test_float WHERE column2 IN (0.0, 1.2, 'NaN'::double,
'-NaN'::double)
Review Comment:
Modified this test which is sign sensitive not to show `NaN` and `-NaN`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]