hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Sichi (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HIVE-1124) create view should expand the query text consistently
Date Thu, 04 Feb 2010 01:58:27 GMT

     [ https://issues.apache.org/jira/browse/HIVE-1124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

John Sichi updated HIVE-1124:

    Attachment: HIVE-1124.2.patch

Updated patch with Zheng's suggestion.  (I had left two calls to get("") unchanged because
I wasn't sure how the key/value pairs in the aggregation map were being constucted, but it
looks like the text and ASTNode are already 1-to-1 there.)

> create view should expand the query text consistently
> -----------------------------------------------------
>                 Key: HIVE-1124
>                 URL: https://issues.apache.org/jira/browse/HIVE-1124
>             Project: Hadoop Hive
>          Issue Type: Bug
>    Affects Versions: 0.6.0
>            Reporter: Zheng Shao
>            Assignee: John Sichi
>             Fix For: 0.6.0
>         Attachments: HIVE-1124.1.patch, HIVE-1124.2.patch
> We should expand the omitted alias in the same way in "select" and in "group by".
> Hive "Group By" recognize "group by" expressions by comparing the literal string.
> {code}
> hive> create view zshao_view as select d, count(1) as cnt from zshao_tt group by d;
> OK
> Time taken: 0.286 seconds
> hive> select * from zshao_view;
> FAILED: Error in semantic analysis: line 1:7 Expression Not In Group By Key d in definition
of VIEW zshao_view [
> select d, count(1) as `cnt` from `zshao_tt` group by `zshao_tt`.`d`
> ] used as zshao_view at line 1:14
> {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