This should be based on the idea of @Till Rohrmann above. Add this as an answer instead of a comment for better formatting.
I think one way to implement split + select could be to use a ProcessFunction with SideOutput. My chart will look something like this:
Source --> ValidateProcessFunction ---good data--> UDF--->SinkToOutput \ \---bad data----->SinkToErrorChannel
Will this work? Is there a better way?
source share