snuyanzin commented on code in PR #28765:
URL: https://github.com/apache/flink/pull/28765#discussion_r3601336713
##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/CodeGenUtils.scala:
##########
@@ -233,12 +233,14 @@ object CodeGenUtils {
value match {
case JFloat.NEGATIVE_INFINITY => "java.lang.Float.NEGATIVE_INFINITY"
case JFloat.POSITIVE_INFINITY => "java.lang.Float.POSITIVE_INFINITY"
+ case f: JFloat if f.isNaN => "java.lang.Float.NaN"
case _ => value.toString + "f"
}
case _: JDouble =>
value match {
case JDouble.NEGATIVE_INFINITY => "java.lang.Double.NEGATIVE_INFINITY"
case JDouble.POSITIVE_INFINITY => "java.lang.Double.POSITIVE_INFINITY"
+ case d: JDouble if d.isNaN => "java.lang.Double.NaN"
Review Comment:
same
--
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]