hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Thusoo (JIRA)" <>
Subject [jira] Commented: (HIVE-164) Support CASE and IF statement
Date Thu, 29 Jan 2009 04:29:59 GMT


Ashish Thusoo commented on HIVE-164:

+1 to the new patch.

We should however support complex types. We don't do so mostly because we do not yet have
UDFs that have a well defined behavior for complex types. IF clearly has. Can you file a JIRA
for that. We can get this in but the other JIRA should go in as a bug fix...


PS: Am running tests on this and will commit once they succeed.

> Support CASE and IF statement
> -----------------------------
>                 Key: HIVE-164
>                 URL:
>             Project: Hadoop Hive
>          Issue Type: New Feature
>          Components: Query Processor
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
>         Attachments: HIVE-164.1.patch, HIVE-164.2.patch
> See 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.

View raw message