You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2025/03/04 10:33:00 UTC
[jira] [Commented] (CALCITE-6718) Optimize SubstitutionVisitor's splitFilter with early return and uniform simplification for equivalence checking
[ https://issues.apache.org/jira/browse/CALCITE-6718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17932248#comment-17932248 ]
Stamatis Zampetakis commented on CALCITE-6718:
----------------------------------------------
[~asolimando] [~suibianwanwan33] [~nobigo] I see that you were involved in the reviews of the PR. Is this something that can be finalized in the next few days or does it require more work?
> Optimize SubstitutionVisitor's splitFilter with early return and uniform simplification for equivalence checking
> ----------------------------------------------------------------------------------------------------------------
>
> Key: CALCITE-6718
> URL: https://issues.apache.org/jira/browse/CALCITE-6718
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.38.0
> Reporter: yanjing.wang
> Assignee: yanjing.wang
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.39.0
>
>
> The {{splitFilter}} function in {{SubstitutionVisitor}} is designed to compute compensation predicates for materialized view substitution.
> According to the documentation, if the condition is stronger than the target, the function returns the residue. This means that if the target is always true, we can return the condition early.
> When checking if {{{}(condition AND target) = condition{}}}, only the first argument used simplifyUnknownAsFalse, the second argument used simplify actually.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)