Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
BigQuery offers the IS_INF and IS_NAN functions. The first returns whether the specified value is infinite, the second returns whether the specified value is NaN.
Example 1: SELECT IS_INF(3) would return FALSE.
Example 2: SELECT IS_INF(CAST('Infinity` AS DOUBLE)) would return TRUE.
Example 3: SELECT IS_NAN(3) would return FALSE.
Example 4: SELECT IS_INF(CAST('NaN' AS DOUBLE)) would return TRUE.
Attachments
Issue Links
- is related to
-
CALCITE-4589 'Infinity' float values fails with java.lang.ClassCastException
- Open
-
CALCITE-2067 RexLiteral cannot represent accurately floating point values, including NaN, Infinity
- Resolved
- links to