You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/09/24 12:42:00 UTC

[jira] [Updated] (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 ]

ASF GitHub Bot updated CALCITE-6586:
------------------------------------
    Labels: pull-request-available  (was: )

> 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
>
> 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)