[
https://issues.apache.org/jira/browse/CALCITE-6718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17932259#comment-17932259
]
Alessandro Solimando commented on CALCITE-6718:
-----------------------------------------------
[~zabetak] my feeling is to skip this round because the main author hasn't been
active for a while now, and there are still some open questions.
It's not even clear at this point if there is any correctness issue as the
ticket descriptions hints, we have surely identified an early return case, so
it's nothing critical IMO, but I can definitely help with a review if others
feel differently.
> 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)