I have two topics- plan
and supplier
plan
topic has a composite key (avro) based on two columns, planCode
+ memberAge
.
supplier
topic is keyed on column supplierId
and it contains the column planCode
but not memberAge
.
KStream<String, GenericRecord> supplier = builder.stream(supplier_topic);
KTable<GenericRecord, GenericRecord> planTable = builder.table(plan_topic);
SUPPLIER (KStream) : supplierId -> ....,planCode,....
PLAN (KTable/ GlobalKTable) : {planCode, memberAge} -> value
I want to do a left join of supplier with plan on plan_code
. How can I do this?