cloud-fan commented on a change in pull request #29647:
URL: https://github.com/apache/spark/pull/29647#discussion_r484475154
##########
File path: sql/core/src/test/resources/sql-tests/inputs/operators.sql
##########
@@ -95,3 +95,9 @@ select width_bucket(5.35, 0.024, 10.06, null);
select width_bucket(5.35, 0.024, 10.06, -5);
select width_bucket(5.35, 0.024, 10.06, 9223372036854775807L); -- long max
value
select width_bucket(5.35, 0.024, 10.06, 9223372036854775807L - 1);
+
+-- special floating values
+select double('NaN') = double('NaN'), double('NaN') >= double('NaN'),
double('NaN') <= double('NaN');
+select double('NaN') > double("+Infinity"), double("+Infinity") <
double('NaN'), double('NaN') > double('NaN');
+select 0.0 = -0.0, 0.0 >= -0.0, 0.0 <= -0.0;
+select 0.0 > -0.0, 0.0 < -0.0;
Review comment:
I'm removing them. I can't reproduce the bug with temp view as there are
optimizations around literals. I'll add an end-to-end test in `DataFrameSuite`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]