You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Gustavo de Morais (Jira)" <ji...@apache.org> on 2025/08/07 11:07:00 UTC

[jira] [Created] (FLINK-38209) Use UniqueKeys instead of Upsertkeys for state management

Gustavo de Morais created FLINK-38209:
-----------------------------------------

             Summary: Use UniqueKeys instead of Upsertkeys for state management
                 Key: FLINK-38209
                 URL: https://issues.apache.org/jira/browse/FLINK-38209
             Project: Flink
          Issue Type: Sub-task
          Components: Table SQL / Runtime
    Affects Versions: 2.1
            Reporter: Gustavo de Morais
            Assignee: Gustavo de Morais
             Fix For: 2.2


When creating MultiJoins, we currently use UpsertKeys as the UniqueKeys for the inputSideSpecs. Even though that is not wrong since upsertKeys are always unique keys, that makes us only use UniqueKeys optimizations for a subset of cases when we have unique keys.

In other words, for joins, we'll often use a state with hasNoUniqueKey even though there's a unique key. This is a considerable optimization and we want to cange that.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)