[
https://issues.apache.org/jira/browse/CALCITE-1299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16797816#comment-16797816
]
Chunwei Lei commented on CALCITE-1299:
--------------------------------------
I test it in the latest version and it looks like it is fixed.
> Reference type of Pulled Up Predicates is not handled properly
> --------------------------------------------------------------
>
> Key: CALCITE-1299
> URL: https://issues.apache.org/jira/browse/CALCITE-1299
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: next
> Reporter: Ted Xu
> Priority: Critical
>
> RelMdPredicates is not handling reference types well. Noticing the following
> query:
> {code:title=query.sql|borderStyle=solid}
> SELECT * FROM
> (SELECT * FROM src) o JOIN (SELECT "foo" as key, value FROM src1) o1
> ON o.key = o1.key
> {code}
> The right side predicate is [key -> "foo"] with key type VARCHAR NOT NULL,
> the very type is not matching the input reference from the left side (which
> is VARCHAR), causing error when applying JoinPushTransitivePredicatesRule.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)