[
https://issues.apache.org/jira/browse/FLINK-39313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated FLINK-39313:
-----------------------------------
Labels: pull-request-available (was: )
> NDU analyzer misses non-deterministic functions in ChangelogNormalize filter
> conditions
> ----------------------------------------------------------------------------------------
>
> Key: FLINK-39313
> URL: https://issues.apache.org/jira/browse/FLINK-39313
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / API
> Affects Versions: 2.2.0
> Reporter: Gustavo de Morais
> Assignee: Gustavo de Morais
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.3.0
>
>
> The StreamNonDeterministicUpdatePlanVisitor treats
> StreamPhysicalChangelogNormalize as transparent, never inspecting its
> filterCondition. When the optimizer pushes a WHERE clause with a
> non-deterministic function (e.g. NOW())
> into ChangelogNormalize on an upsert source, the filter asymmetrically
> drops -U records while passing +U records, corrupting the retract contract
> and causing incorrect results downstream.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)