hey guys, in flink we dont have a callback when a ...
# troubleshooting
t
hey guys, in flink we dont have a callback when a map, filter or other function gives error. its possible to introduce that kind of feature in flink and pyflink in a future release?
p
Which kind of error are you mentioning? Wouldn't a try/catch help you there?
t
its not that. i want a side output to put error events to publish on a DLT topic
so side outputs are not supported in maps in pyflink. we dont want to use process functions because we detected they are less performant.
so that kind of callback would help because of getting the errors from there
p
Have you checked flatMap instead? IIRC, they do support side/multiple outputs
t
in pyflink-?
p
Oh! I was checking the docs and apparently, on pyflink only a process funtion will achieve this behavior
t
yes, that's why we were asking if its possible to add that functionallity or a function error as argument to redirect the discarded records to a DLT topic
p
Yeah. From current implementation no. You'd have to rely on ProcessFunction. If you think more folks could support, you can always open a new flip discussion
t
where i can open it ?
d
I'm curious about the statement that process functions are less performant than map. How did you measure this?
t
the implementation that we had on process functions were giving less rate of process records than the map function. i dont have the prints now ...but we saw that was about 10k
since process functions are more open-ended people are getting more creative 😄
and we want to kill that possibility 🙂 we can create our map function on top of the process function as flink is doing it
☝️ 1