[
https://issues.apache.org/jira/browse/HIVE-11151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ashutosh Chauhan updated HIVE-11151:
------------------------------------
Attachment: HIVE-11151.4.patch
[~jcamachorodriguez] That check seems to be already present in that rule.
{code}
RelDataType keyType = input.getRowType().getFieldList().get(pos).getType();
// Nothing to do if key cannot be null
if (!keyType.isNullable()) {
continue;
}
{code}
Or are you thinking of something else?
Addressed other review comments on .4 patch
> Calcite transitive predicate inference rule should pay attention to its input
> rel type
> --------------------------------------------------------------------------------------
>
> Key: HIVE-11151
> URL: https://issues.apache.org/jira/browse/HIVE-11151
> Project: Hive
> Issue Type: Bug
> Components: CBO, Logical Optimizer
> Affects Versions: 1.2.0, 1.2.1
> Reporter: Ashutosh Chauhan
> Assignee: Ashutosh Chauhan
> Attachments: HIVE-11151.2.patch, HIVE-11151.3.patch,
> HIVE-11151.4.patch, HIVE-11151.patch
>
>
> Calcite rule will add predicates even if types don't match
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)