You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/04/20 00:59:05 UTC

[GitHub] [spark] maropu commented on a change in pull request #28264: [SPARK-31491][SQL][DOCS] Re-arrange Data Types page to document Floating Point Special Values

maropu commented on a change in pull request #28264:
URL: https://github.com/apache/spark/pull/28264#discussion_r411032845



##########
File path: docs/sql-ref-datatypes.md
##########
@@ -706,3 +708,28 @@ The following table shows the type names as well as aliases used in Spark SQL pa
 </table>
 </div>
 </div>
+
+### Floating Point Special Values
+
+Spark SQL supports several special floating point values in a case-insensitive manner:
+
+ * Inf/+Inf/Infinity/+Infinity: positive infinity
+   * ```FloatType```: 1.0f / 0.0f
+   * ```DoubleType```: 1.0 / 0.0
+ * -Inf/-Infinity: negative infinity
+   * ```FloatType```: -1.0f / 0.0f
+   * ```DoubleType```: -1.0 / 0.0
+ * NaN: not a number
+   * ```FloatType```: 0.0f / 0.0f
+   * ```DoubleType```:  0.0d / 0.0
+

Review comment:
       Could you add examples, too, here?




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



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