You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/07/02 00:32:00 UTC

[jira] [Work logged] (HIVE-3236) allow column names to be prefixed by table alias in select all queries

     [ https://issues.apache.org/jira/browse/HIVE-3236?focusedWorklogId=453731&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-453731 ]

ASF GitHub Bot logged work on HIVE-3236:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Jul/20 00:31
            Start Date: 02/Jul/20 00:31
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] closed pull request #5:
URL: https://github.com/apache/hive/pull/5


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 453731)
    Time Spent: 20m  (was: 10m)

> allow column names to be prefixed by table alias in select all queries
> ----------------------------------------------------------------------
>
>                 Key: HIVE-3236
>                 URL: https://issues.apache.org/jira/browse/HIVE-3236
>             Project: Hive
>          Issue Type: Improvement
>          Components: Query Processor
>    Affects Versions: 0.9.1, 0.10.0
>            Reporter: Keegan Mosley
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: HIVE-3236.1.patch.txt
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When using "CREATE TABLE x AS SELECT ..." where the select joins tables with hundreds of columns it is not a simple task to resolve duplicate column name exceptions (particularly with self-joins). The user must either manually specify aliases for all duplicate columns (potentially hundreds) or write a script to generate the data set in a separate select query, then create the table and load the data in.
> There should be some conf flag that would allow queries like
> "create table joined as select one.\*, two.\* from mytable one join mytable two on (one.duplicate_field = two.duplicate_field1);"
> to create a table with columns one_duplicate_field and two_duplicate_field.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)