Hi all,I am trying to implement the following using Flink:I have 2 input message streams:1. Data Stream:KEY VALUE TIME...C V6 6B V6 6A V5 5A V4 4C V3 3A V3 3B V3 3B V2 2A V1 12. Control Stream:Lambda ArgumentKeys TIME...f2 [A, C] 4f1 [A, B, C] 1I want to apply the lambdas coming in the control stream to the selection of keys that are coming in the data stream.Since we have 2 streams I naturally thought of connecting them using .connect. For this I need to key both of them by a certain criteria. And here lies the problem, how can I make sure the messages with keys A,B,C specified in the control stream end up in the same task as well as the control message (f1, [A, B, C]) itself. Basically I don't know how to key by to achieve this.I suspect a custom partitioner is required that partitions the data stream based on the messages in the control stream? Is this even possible?Any suggestions welcomed!Thanks,M
Free forum by Nabble | Edit this page |