conduktor.io ↗

KIP-1104 — Allow Foreign Key Extraction from Both Key and Value in KTable Joins

Accepted Kafka 4.1 Streams

Adds a BiFunction<K, V, KO> foreignKeyExtractor overload to KTable.join() and related DSL methods so that the foreign key can be derived from both the record key and value, not just the value. The existing Function<V, KO> extractor forced users to duplicate key fields into the record value whenever the foreign key depended on the message key, creating data redundancy and potential inconsistency.

Details

AuthorChu Cheng Li
StatusAccepted
Kafka Version4.1
JIRAKAFKA-17893
WikiView on Apache Wiki
Created2024-10-30
Last Modified2025-03-27
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.