dilipbiswal commented on a change in pull request #25331: [SPARK-27768][SQL] 
Infinity, -Infinity, NaN should be recognized in a case insensitive manner.
URL: https://github.com/apache/spark/pull/25331#discussion_r312342690
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala
 ##########
 @@ -192,6 +193,18 @@ object Cast {
   }
 
   def resolvableNullability(from: Boolean, to: Boolean): Boolean = !from || to
+
+  def processFloatingPointSpecialLiterals(v: String, isFloat: Boolean): Any = {
 
 Review comment:
   @viirya Does this look ok ?
   
   We process literals such as 'Infinity', 'Inf', '-Infinity' and 'NaN' in case 
insensitive manner to be compatible with other database systems such as 
Postgres and DB2.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to