wenjin272 opened a new issue, #1513:
URL: https://github.com/apache/flink-agents/issues/1513

   ### Search before asking
   
   - [x] I searched in the 
[issues](https://github.com/apache/flink-agents/issues) and found nothing 
similar.
   
   ### Description
   
   Python Agent outputs currently use a pickle-backed byte stream and a 
downstream decoding map, even when the caller declares a Flink output type. 
Typed Table outputs also require downstream conversion.
   
   Apply supported declared Flink output types directly to the Python Agent 
operator, converting the decoded OutputEvent payload into the corresponding 
Java values. This removes the extra decoding map and lets downstream Flink 
operators use the declared type. Downstream Python operators should continue to 
receive Python values through PyFlink's normal conversion.
   
   Preserve the existing behavior for untyped outputs, Python class 
declarations, and types that cannot use direct conversion. Table outputs should 
use the Row type derived from their schema or output declaration. Each builder 
should use one Agent output type and reject conflicting declarations.
   
   This is the Python counterpart to the Java output improvement in #1505. The 
aim is to remove unnecessary output conversion; no measured performance gain is 
claimed.
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to