You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Igor Fomenko (Jira)" <ji...@apache.org> on 2023/08/02 14:16:00 UTC

[jira] [Created] (KAFKA-15299) Support left stream-table join on foreign key

Igor Fomenko created KAFKA-15299:
------------------------------------

             Summary: Support left stream-table join on foreign key
                 Key: KAFKA-15299
                 URL: https://issues.apache.org/jira/browse/KAFKA-15299
             Project: Kafka
          Issue Type: New Feature
          Components: streams
            Reporter: Igor Fomenko
            Assignee: Igor Fomenko


KIP-955: https://cwiki.apache.org/confluence/display/KAFKA/KIP-955%3A+Add+stream-table+join+on+foreign+key

Currently in Kafka Streams DSL, KStream to KTable joins could only be performed with the keys. However in practice it is often required to join the messages in Kafka topics using message field as a "foreign key" with the following pattern:  

 
streamX.leftJoin(tableY, RecordTableY::getForegnKey, joiner).to("output-topic-name")
 
The left loin on foreign key operation will result in a stream of messages from two topics joined on foreign key where each output message is produced for each event on the input stream.



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