[
https://issues.apache.org/jira/browse/CALCITE-5827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tanner Clary resolved CALCITE-5827.
-----------------------------------
Fix Version/s: 1.36.0
Resolution: Fixed
Merged via
[25f326c|https://github.com/apache/calcite/commit/25f326cf0a94d5e65bd82abc95b676cec6b1fd43],
thanks for the reviews [~Runking] [~julianhyde]!
> Add IS_INF and IS_NAN functions (enabled in BigQuery library)
> -------------------------------------------------------------
>
> Key: CALCITE-5827
> URL: https://issues.apache.org/jira/browse/CALCITE-5827
> Project: Calcite
> Issue Type: New Feature
> Reporter: Tanner Clary
> Assignee: Tanner Clary
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.36.0
>
>
> BigQuery offers the
> [IS_INF|https://cloud.google.com/bigquery/docs/reference/standard-sql/mathematical_functions#is_inf]
> and
> [IS_NAN|https://cloud.google.com/bigquery/docs/reference/standard-sql/mathematical_functions#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}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)