You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Namit Jain (JIRA)" <ji...@apache.org> on 2010/01/11 23:54:54 UTC
[jira] Created: (HIVE-1042) function in a transform with more than
1 argument fails
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
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.
[jira] Resolved: (HIVE-1042) function in a transform with more than
1 argument fails
Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Namit Jain resolved HIVE-1042.
------------------------------
Resolution: Fixed
Hadoop Flags: [Reviewed]
Committed in trunk and 0.5
> 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, 0.6.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.
[jira] Commented: (HIVE-1042) function in a transform with more
than 1 argument fails
Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799314#action_12799314 ]
Namit Jain commented on HIVE-1042:
----------------------------------
Committed in trunk - running tests for 0.5 now
> 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.
[jira] Updated: (HIVE-1042) function in a transform with more than
1 argument fails
Posted by "Paul Yang (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (HIVE-1042) function in a transform with more
than 1 argument fails
Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798981#action_12798981 ]
Namit Jain commented on HIVE-1042:
----------------------------------
+1
looks good - will commit if the tests pass
> 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.
[jira] Commented: (HIVE-1042) function in a transform with more
than 1 argument fails
Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798907#action_12798907 ]
Namit Jain commented on HIVE-1042:
----------------------------------
This needs to be backported to 0.5 also
> 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
>
>
> 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.
[jira] Updated: (HIVE-1042) function in a transform with more than
1 argument fails
Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carl Steinbach updated HIVE-1042:
---------------------------------
Fix Version/s: (was: 0.6.0)
> function in a transform with more than 1 argument fails
> -------------------------------------------------------
>
> Key: HIVE-1042
> URL: https://issues.apache.org/jira/browse/HIVE-1042
> Project: 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.
[jira] Updated: (HIVE-1042) function in a transform with more than
1 argument fails
Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zheng Shao updated HIVE-1042:
-----------------------------
Fix Version/s: 0.6.0
> 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, 0.6.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.