You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Paul Yang (JIRA)" <ji...@apache.org> on 2010/01/12 02:08:54 UTC
[jira] Updated: (HIVE-1042) function in a transform with more than
1 argument fails
[ https://issues.apache.org/jira/browse/HIVE-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Yang updated HIVE-1042:
----------------------------
Attachment: HIVE-1042.1.patch
The error 'FAILED: Error in semantic analysis: AS clause has an invalid number of aliases' is meant to catch queries where the use supplies more than one alias for normal UDF's i.e.:
SELECT concat(a) AS (key, value) FROM src; (invalid)
Because the AST structure for the TRANSFORM clause is slightly different (there is no TOK_SELEXPR), this check is improperly triggered when TRANSFORM was used with a function that had multiple arguments.
> function in a transform with more than 1 argument fails
> -------------------------------------------------------
>
> Key: HIVE-1042
> URL: https://issues.apache.org/jira/browse/HIVE-1042
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Query Processor
> Reporter: Namit Jain
> Assignee: Paul Yang
> Fix For: 0.5.0
>
> Attachments: HIVE-1042.1.patch
>
>
> select transform(substr(key, 1, 3))
> USING '/bin/cat'
> FROM src
> throws an error:
> FAILED: Error in semantic analysis: AS clause has an invalid number of aliases
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.