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 2021/03/07 15:52:00 UTC

[jira] [Work logged] (HIVE-22601) Some columns will be lost when a UDTF has multiple aliases in some cases

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

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

                Author: ASF GitHub Bot
            Created on: 07/Mar/21 15:51
            Start Date: 07/Mar/21 15:51
    Worklog Time Spent: 10m 
      Work Description: okumin opened a new pull request #2042:
URL: https://github.com/apache/hive/pull/2042


   https://issues.apache.org/jira/browse/HIVE-22601
   
   ### What changes were proposed in this pull request?
   A bug fix. Hive can't handle multiple aliases now.
   
   ### Why are the changes needed?
   This bug causes incorrect results. It's inconvenient especially when we use Hivemall. It has UDTFs that return multiple columns.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, but the current behavior is apparently buggy.
   
   ### How was this patch tested?
   Add 2 test cases.


----------------------------------------------------------------
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: 561985)
    Time Spent: 40m  (was: 0.5h)

> Some columns will be lost when a UDTF has multiple aliases in some cases
> ------------------------------------------------------------------------
>
>                 Key: HIVE-22601
>                 URL: https://issues.apache.org/jira/browse/HIVE-22601
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 2.1.1, 2.2.0, 2.3.6, 3.1.2
>            Reporter: okumin
>            Assignee: okumin
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-22601.1.patch, HIVE-22601.2.patch, HIVE-22601.3.patch, HIVE-22601.patch
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Only one column will be retained when putting UDTFs with multiple aliases and a top-level UNION together.
> For example, the result of the following SQL should have three columns, c1, c2 and c3.
> {code:java}
> SELECT stack(1, 'a', 'b', 'c') AS (c1, c2, c3)
> UNION ALL
> SELECT stack(1, 'd', 'e', 'f') AS (c1, c2, c3);
> {code}
> However, It's only the c3 column which I can get.
> {code:java}
> +---------+
> | _u1.c3  |
> +---------+
> | c       |
> | f       |
> +---------+
> {code}



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