Re: How to handle tuple keys with null values

2024-04-02 Thread Hang Ruan
Hi Sachin. I think maybe we could cast the Long as String to handle the null value. Or as Asimansu said, try to filter out the null data. Best, Hang Asimansu Bera 于2024年4月3日周三 08:35写道: > Hello Sachin, > > The same issue had been reported in the past and JIRA was closed without > resolution. >

Re: How to handle tuple keys with null values

2024-04-02 Thread Asimansu Bera
Hello Sachin, The same issue had been reported in the past and JIRA was closed without resolution. https://issues.apache.org/jira/browse/FLINK-4823 I do see this is as a data quality issue. You need to understand what you would like to do with the null value. Either way, better to filter out the

How to handle tuple keys with null values

2024-04-02 Thread Sachin Mittal
Hello folks, I am keying my stream using a Tuple: example: public class MyKeySelector implements KeySelector> { @Override public Tuple2 getKey(Data data) { return Tuple2.of(data.id, data.id1); } } Now id1 can have null values. In this case how should I handle this? Right now I am getting th