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/04/21 00:24:47 UTC
[jira] Commented: (HIVE-164) Support CASE statement using
GenericUDF
[ https://issues.apache.org/jira/browse/HIVE-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12700972#action_12700972 ]
Zheng Shao commented on HIVE-164:
---------------------------------
Some framework changes:
* New: GenericUDF API
* ExprNodeEvaluator API changes: init(rowInspector), evaluate(rowObject)
* Operator API change: process() now takes a tag.
Also it would be nice to let the SemanticAnalyzer to use ObjectInspector to represent the row instead of RowSchema.
That can help remove one function from the GenericUDF API.
> Support CASE statement using GenericUDF
> ---------------------------------------
>
> 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: Zheng Shao
> Attachments: HIVE-164.4.patch, HIVE-164.5.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
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.