[ 
https://issues.apache.org/jira/browse/KAFKA-9533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17059088#comment-17059088
 ] 

ASF GitHub Bot commented on KAFKA-9533:
---------------------------------------

mjsax commented on pull request #8298: KAFKA-9533: Fix JavaDocs of 
KStream.transformValues
URL: https://github.com/apache/kafka/pull/8298
 
 
   We might want to cherry-pick this back to 2.3.
   
   Call for review @bbejeck 
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> JavaDocs of KStream#ValueTransform incorrect
> --------------------------------------------
>
>                 Key: KAFKA-9533
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9533
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>    Affects Versions: 2.3.0
>            Reporter: Michael Viamari
>            Assignee: Matthias J. Sax
>            Priority: Major
>
> According to the documentation for `KStream#transformValues`, nulls returned 
> from `ValueTransformer#transform` are not forwarded. (see 
> [KStream#transformValues|https://kafka.apache.org/24/javadoc/org/apache/kafka/streams/kstream/KStream.html#transformValues-org.apache.kafka.streams.kstream.ValueTransformerSupplier-java.lang.String...-])
> However, this does not appear to be the case. In 
> `KStreamTransformValuesProcessor#process` the result of the transform is 
> forwarded directly.
> {code:java}
>  @Override
>  public void process(final K key, final V value) {
>      context.forward(key, valueTransformer.transform(key, value));
>  }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to