You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "PDGGK (via GitHub)" <gi...@apache.org> on 2026/01/30 08:29:51 UTC

Re: [I] [Feature Request]: Add support to write record headers in `WriteToKafka` in python SDK [beam]

PDGGK commented on issue #27033:
URL: https://github.com/apache/beam/issues/27033#issuecomment-3822498617

   Hi, I'd like to work on this issue.
   
   I've analyzed the current implementation:
   - Python `WriteToKafka` is an `ExternalTransform` wrapper (kafka.py:270)
   - Uses URN `beam:transform:org.apache.beam:kafka_write:v1`
   - Java side maps KV → ProducerRecord without headers support
   - Headers need per-record support via Row schema input
   
   My plan:
   1. Extend Java `KafkaIO.Write` to accept Row input with `{key, value, headers[]}` schema
   2. Update Python wrapper to support Row-based input  
   3. Add cross-language integration tests
   
   Estimated: ~300-500 lines across Python + Java + tests.
   
   I'm an existing contributor with merged PRs (#37298).
   
   .take-issue


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org