okumin created HIVE-27950: ----------------------------- Summary: 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
`STACK` 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)