You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Zheng Shao (JIRA)" <ji...@apache.org> on 2009/01/29 03:38:59 UTC
[jira] Updated: (HIVE-164) Support CASE and IF statement
[ https://issues.apache.org/jira/browse/HIVE-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zheng Shao updated HIVE-164:
----------------------------
Attachment: HIVE-164.1.patch
This simple patch provides "IF".
The majority of the cases are that users just want a simple "IF". This patch provides this simple functionality.
For "CASE" with variable number of arguments, let's move the discussion to a new jira.
> Support CASE and IF statement
> -----------------------------
>
> Key: HIVE-164
> URL: https://issues.apache.org/jira/browse/HIVE-164
> Project: Hadoop Hive
> Issue Type: New Feature
> Components: Query Processor
> Reporter: Zheng Shao
> Assignee: David Phillips
> Attachments: HIVE-164.1.patch
>
>
> See http://dev.mysql.com/doc/refman/5.0/en/control-flow-functions.html for details.
> Syntax:
> {code}
> CASE value WHEN [compare_value] THEN result [WHEN [compare_value] THEN result ...] [<ELSE result] END
> CASE WHEN [condition] THEN result [WHEN [condition] THEN result ...] [ELSE result] END
> IF(expr1,expr2,expr3)
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.