You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "lincoln lee (Jira)" <ji...@apache.org> on 2021/04/02 03:19:00 UTC

[jira] [Closed] (CALCITE-2023) Add SqlKind.AS to policy map of org.apache.calcite.plan.Strong due to NPE when apply FilterJoinRule

     [ https://issues.apache.org/jira/browse/CALCITE-2023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

lincoln lee closed CALCITE-2023.
--------------------------------
    Resolution: Not A Problem

> Add SqlKind.AS to policy map of org.apache.calcite.plan.Strong due to NPE when apply FilterJoinRule 
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-2023
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2023
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: lincoln lee
>            Priority: Minor
>
> Encounter a NPE when apply FilterJoinRule in a [use case|https://issues.apache.org/jira/browse/FLINK-7942] written in flink table api. 
> A simple way to fix this is to change the calcite class
> {code}org.apache.calcite.plan.Strong{code} add an additional entry to the EnumMap in createPolicyMap method: {code}map.put(SqlKind.AS, Policy.AS_IS);{code}
> But I'm not sure if it is the right way, or there's other root cause?
> @julianhyde could you offer some advice?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)