Thanks for the KIP Victoria.

As pointed out on the Jira ticket by you, using `<K,V>` and `<KO,VO>` as partitioner types does not really work, because we don't have access to the right value on the left side nor have we access to the left value on the right hand side. -- I like your idea to use `Void` as value types to make it clear to the users that partitioning must be done on the key only.

For the proposed public API change, I would propose not to pass the partitioners directly, but to introduce a config object (similar to `Joined` for stream-table joins, and `StreamJoined` for stream-stream joins). This new object could also implement `NamedOperation` and thus replace `Named`. To this end, we would deprecate the existing methods using `Named` and replace them with the new methods. Net benefit is, that we don't get more overloads (after we removed the deprecated ones).

Not sure how we want to call the new object. Maybe `TableJoined` in alignment to `StreamJoined`?


-Matthias

On 9/15/21 3:36 PM, Victoria Xia wrote:
Hi,

I've opened a small KIP for adding Kafka Streams support for foreign key
joins on tables with custom partitioners:
https://cwiki.apache.org/confluence/display/KAFKA/KIP-775%3A+Custom+partitioners+in+foreign+key+joins

Feedback appreciated. Thanks!

- Victoria

Reply via email to