You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2020/10/16 01:35:00 UTC
[jira] [Resolved] (CALCITE-3731) Add IF function for BigQuery, Hive
and Spark Dialects
[ https://issues.apache.org/jira/browse/CALCITE-3731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Hyde resolved CALCITE-3731.
----------------------------------
Fix Version/s: 1.27.0
Resolution: Fixed
Fixed in [a186f02a|https://github.com/julianhyde/calcite/commit/a186f02ab79374dc7a6ff0b2ae0c3cb661fbd86a]. Thanks for the PR, [~vaibhavjain-dm]!
> Add IF function for BigQuery, Hive and Spark Dialects
> -----------------------------------------------------
>
> Key: CALCITE-3731
> URL: https://issues.apache.org/jira/browse/CALCITE-3731
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: vaibhav jain
> Assignee: Julian Hyde
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.27.0
>
> Time Spent: 3.5h
> Remaining Estimate: 0h
>
> Adding support for *IF* function for BigQuery, Hive and Spark Dialects.
> *Syntax*- IF(condition, true_result, false_result)
> If *condition* is true, returns *true_result*, else returns *false_result*.
> Document links:
> [BigQuery|https://cloud.google.com/bigquery/docs/reference/standard-sql/conditional_expressions]
> [Hive |https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-ConditionalFunctions]
> [Spark Sql|https://spark.apache.org/docs/2.3.1/api/sql/index.html#if]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)