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

Gustavo de Morais resolved FLINK-41562.
---------------------------------------
    Fix Version/s: 2.5.0
       Resolution: Fixed

Fixed in apache/flink:master cf2cfdef0b372cfe6b5bdc8565571c459e044cb7

> Declare insert-only output for DEDUPLICATE when it keeps the first arrival
> --------------------------------------------------------------------------
>
>                 Key: FLINK-41562
>                 URL: https://issues.apache.org/jira/browse/FLINK-41562
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table SQL / Planner
>            Reporter: Gustavo de Morais
>            Assignee: Gustavo de Morais
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.5.0
>
>
> {{DEDUPLICATE}} declares an updating output. Over insert-only input with 
> {{keep => 'first'}} and no {{sequence_by}}, the kept row of a key never 
> changes, so the function only emits inserts. The planner should declare an 
> insert-only output for this case, so the result can be written to append-only 
> sinks and used with {{on_time}} to keep event time, for example to feed a 
> window aggregation.
> A common use is dropping exact duplicates left by at-least-once delivery or 
> reprocessing:
> {code:sql}
> INSERT INTO unique_payments
> SELECT * FROM DEDUPLICATE(
>     input => TABLE payments PARTITION BY payment_id)
> {code}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to