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

ASF GitHub Bot updated HIVE-27950:
----------------------------------
    Labels: pull-request-available  (was: )

> STACK UDTF returns wrong results when # of argument is not a multiple of N
> --------------------------------------------------------------------------
>
>                 Key: HIVE-27950
>                 URL: https://issues.apache.org/jira/browse/HIVE-27950
>             Project: Hive
>          Issue Type: Bug
>            Reporter: okumin
>            Assignee: okumin
>            Priority: Major
>              Labels: pull-request-available
>
> GenericUDTFStack nullifies a wrong cell when the number of values is 
> indivisible. In the following case, the `col2` column of the last row should 
> be `NULL`. But, `col1` is NULL somehow. 
> {code:java}
> 0: jdbc:hive2://hive-hiveserver2:10000/defaul> select stack(2, 'a', 'b', 'c', 
> 'd', 'e');
> +-------+-------+-------+
> | col0  | col1  | col2  |
> +-------+-------+-------+
> | a     | b     | c     |
> | d     | NULL  | c     |
> +-------+-------+-------+{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to