[
https://issues.apache.org/jira/browse/HIVE-13861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jesus Camacho Rodriguez updated HIVE-13861:
-------------------------------------------
Attachment: HIVE-13861.01.patch
> Fix up nullability issue that might be created by pull up constants rules
> -------------------------------------------------------------------------
>
> Key: HIVE-13861
> URL: https://issues.apache.org/jira/browse/HIVE-13861
> Project: Hive
> Issue Type: Bug
> Components: CBO
> Affects Versions: 2.1.0
> Reporter: Jesus Camacho Rodriguez
> Assignee: Jesus Camacho Rodriguez
> Attachments: HIVE-13861.01.patch
>
>
> When we pull up constants through Union or Sort operators, we might end up
> rewriting the original expression into an expression whose schema has
> different nullability properties for some of its columns.
> This results in AssertionError of the following kind:
> {noformat}
> ...
> org.apache.hive.service.cli.HiveSQLException: Error running query:
> java.lang.AssertionError: Internal error: Cannot add expression of different
> type to set:
> ...
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)