You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2024/11/13 23:50:00 UTC

[jira] [Resolved] (CALCITE-6586) Some Rules not firing due to RelMdPredicates returning null in VolcanoPlanner

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

Mihai Budiu resolved CALCITE-6586.
----------------------------------
    Fix Version/s: 1.39.0
       Resolution: Fixed

Fixed in https://github.com/apache/calcite/commit/394ec336d6e89884f817e1c3b3fa1c0da211fe59
Thank you for the contribution [~suibianwanwan33]

> Some Rules not firing due to RelMdPredicates returning null in VolcanoPlanner
> -----------------------------------------------------------------------------
>
>                 Key: CALCITE-6586
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6586
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: suibianwanwan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.39.0
>
>
> Because getPredicates(RelSubset r, RelMetadataQuery mq) returns null by default, some rules will not work in volcanoPlanner. Such as SortRemoveConstantKeysRule, UnionPullUpConstantsRule, ExchangeRemoveConstantKeysRule, AggregateJoinTransposeRule, ReduceExpressionsRule, etc. 
> {code:java}
> public RelOptPredicateList getPredicates(RelSubset r,
>     RelMetadataQuery mq) {
>   if (!Bug.CALCITE_1048_FIXED) {
>     return RelOptPredicateList.EMPTY;
>   } 
> }{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)