You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Chunwei Lei (Jira)" <ji...@apache.org> on 2020/11/10 07:38:00 UTC
[jira] [Commented] (CALCITE-4319) NPE in TopDownRuleDriver#convert
when convention is not enabled
[ https://issues.apache.org/jira/browse/CALCITE-4319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17229035#comment-17229035 ]
Chunwei Lei commented on CALCITE-4319:
--------------------------------------
In what condition the convention would be null?
> NPE in TopDownRuleDriver#convert when convention is not enabled
> ---------------------------------------------------------------
>
> Key: CALCITE-4319
> URL: https://issues.apache.org/jira/browse/CALCITE-4319
> Project: Calcite
> Issue Type: Sub-task
> Components: core
> Reporter: Vladimir Sitnikov
> Priority: Major
>
> {code:java} VolcanoRuleMatch match = ruleQueue.popMatch(
> Pair.of(rel,
> m -> m.getRule() instanceof ConverterRule
> && m.getRule().getOutTrait().satisfies(group.getTraitSet().getConvention())));
> {code}
> satisfies(null) fails with NPE
> see https://github.com/apache/calcite/blob/532f903fe495d741053619c13a51537e57dcd619/core/src/main/java/org/apache/calcite/plan/volcano/TopDownRuleDriver.java#L586
--
This message was sent by Atlassian Jira
(v8.3.4#803005)