[ https://issues.apache.org/jira/browse/HIVE-27950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Attila Turoczy updated HIVE-27950: ---------------------------------- Affects Version/s: 4.0.0-beta-1 > 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 > Affects Versions: 4.0.0-beta-1 > 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)