You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2026/03/26 15:19:00 UTC

[jira] [Closed] (FLINK-39313) NDU analyzer misses non-deterministic functions in ChangelogNormalize filter conditions

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

Timo Walther closed FLINK-39313.
--------------------------------
    Resolution: Fixed

Fixed in master: 0f3889e7eec677723ceed92835414038d754a32c

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