Nathanael England
03/31/2023, 8:31 PMKeyedCoProcessFunction
in pyflink 1.16.0. When I call ctx.get_current_key()
like the docs show, I just get None
back instead of my key. Does this work for anyone else?Nathanael England
03/31/2023, 8:39 PMset_current_key
is never being called.Nathanael England
03/31/2023, 8:45 PMKeyedProcessFunction
Nathanael England
03/31/2023, 8:48 PMset_current_key
on my own and things seem to work but 🥴Nathanael England
03/31/2023, 9:12 PMNathanael England
03/31/2023, 9:19 PMNathanael England
03/31/2023, 9:26 PM_is_keyed_stream()
agrees that my connected stream is keyedNathanael England
03/31/2023, 9:29 PMNathanael England
03/31/2023, 11:33 PMprocess_element
is called. It seems it's only set in the timer context?Nathanael England
03/31/2023, 11:45 PMDian Fu
04/03/2023, 2:30 AMDian Fu
04/03/2023, 2:32 AMNathanael England
04/03/2023, 2:33 AMDian Fu
04/03/2023, 4:00 AMctx.get_current_key
.Dian Fu
04/03/2023, 4:02 AMctx.get_current_key
, there will be no problem. Otherwise, you need to manually compute the current key just as what you have done.Dian Fu
04/03/2023, 4:02 AM