hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaoyu Tang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-16019) Query fails when group by/order by on same column with uppercase name
Date Thu, 23 Feb 2017 05:20:44 GMT

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

Chaoyu Tang updated HIVE-16019:
-------------------------------
    Attachment: HIVE-16019.patch

It is related to HIVE-12590. I am not quite sure in that patch why we removed the "col_alias
= col_alias.toLowerCase();" from RowResolver.addMappingOnly & get methods. Is it because
the that col_alias could probably be a case-sensitive constant value instead of column identifier?
To follow the change in HIVE-12590, I converted the column names to lowercase when processing
the TOK_TABLE_OR_COL token in groupby.
[~ashutoshc], [~pxiong] Could you review the patch?

> Query fails when group by/order by on same column with uppercase name
> ---------------------------------------------------------------------
>
>                 Key: HIVE-16019
>                 URL: https://issues.apache.org/jira/browse/HIVE-16019
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Chaoyu Tang
>            Assignee: Chaoyu Tang
>         Attachments: HIVE-16019.patch
>
>
> Query with group by/order by on same column KEY failed:
> {code}
> SELECT T1.KEY AS MYKEY FROM SRC T1 GROUP BY T1.KEY ORDER BY T1.KEY LIMIT 3;
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message