[ 
https://issues.apache.org/jira/browse/BEAM-6063?focusedWorklogId=166976&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-166976
 ]

ASF GitHub Bot logged work on BEAM-6063:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Nov/18 17:59
            Start Date: 16/Nov/18 17:59
    Worklog Time Spent: 10m 
      Work Description: aromanenko-dev commented on a change in pull request 
#7052: [BEAM-6063] KafkaIO: add writing support with ProducerRecord
URL: https://github.com/apache/beam/pull/7052#discussion_r234296236
 
 

 ##########
 File path: 
sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/KafkaIO.java
 ##########
 @@ -1122,6 +1130,182 @@ public void populateDisplayData(DisplayData.Builder 
builder) {
     }
   }
 
+  /**
+   * A {@link PTransform} to write to a Kafka topic with KVs . See {@link 
KafkaIO} for more
+   * information on usage and configuration.
+   */
+  @AutoValue
+  public abstract static class Write<K, V> extends 
PTransform<PCollection<KV<K, V>>, PDone> {
 
 Review comment:
   Yes, makes sense for me. I also was thinking about that so agree to do this 
for 3.0

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 166976)
    Time Spent: 2h  (was: 1h 50m)

> KafkaIO: add writing support with ProducerRecord
> ------------------------------------------------
>
>                 Key: BEAM-6063
>                 URL: https://issues.apache.org/jira/browse/BEAM-6063
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-kafka
>            Reporter: Alexey Romanenko
>            Assignee: Alexey Romanenko
>            Priority: Major
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> Currently, the default input collection for {{KafkaIO.Write}} is 
> {{PCollection<KV<K,V>>}}. To support writing of Kafka headers or different 
> output Kafka topics, we need to change type of input collection to 
> {{PCollection<ProducerRecord<K,V>>}}. Also, it will make sense to use 
> {{ProducerRecord<K,V>}} instead of {{KV<K,V>}} internally in {{KafkaIO}} to 
> keep all meta information.
> In the same time, we need to keep compatibility for old interface based on 
> {{KV<K,V>}} but make it deprecated and totally move to 
> {{ProducerRecord<K,V>}} later.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to