[
https://issues.apache.org/jira/browse/FLINK-41684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated FLINK-41684:
-----------------------------------
Labels: pull-request-available (was: )
> Mini-batch streaming join drops a delete when +U and -D of an upsert input
> land in one bundle (row stays in the result forever)
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: FLINK-41684
> URL: https://issues.apache.org/jira/browse/FLINK-41684
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Runtime
> Affects Versions: 2.3.0
> Reporter: Roman Khachatryan
> Priority: Major
> Labels: pull-request-available
>
> h3. Summary
> In the mini-batch streaming join, the bundles JoinKeyContainsUniqueKeyBundle
> (~:80-104, fold ~:89) and InputSideHasUniqueKeyBundle (~:98) fold "+U(k,v1)
> followed by -D(k)" within one bundle into nothing, assuming a retract input.
> On an UPSERT input (no UPDATE_BEFORE) where v0 is already in join state from
> an earlier bundle, both events vanish: v0 and its joined output stay in the
> result forever (lost delete -> wrong results).
> h3. Reproduction (operator harness, flink-table-runtime)
> StreamingMiniBatchJoinUpsertFoldTest: upsert input with PK = join key (and PK
> wider than join key); +I(k,v0), end of bundle (prepareSnapshotPreBarrier),
> then +U(k,v1) and -D(k) in one bundle; INNER and LEFT join, either input
> side. 12 of 16 cases fail: e.g. the only output is +I[Ord#1, LineOrd#1, ...]
> and the final materialized result keeps it (expected empty). Control (the -D
> in the next bundle) passes in all variants.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)