hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Yang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HIVE-1042) function in a transform with more than 1 argument fails
Date Tue, 12 Jan 2010 01:08:54 GMT

     [ 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.


Mime
View raw message