Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9533

JavaDocs of KStream#ValueTransform incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.2, 2.6.0, 2.4.2, 2.5.1
    • streams
    • None

    Description

      According to the documentation for `KStream#transformValues`, nulls returned from `ValueTransformer#transform` are not forwarded. (see KStream#transformValues)

      However, this does not appear to be the case. In `KStreamTransformValuesProcessor#process` the result of the transform is forwarded directly.

       @Override
       public void process(final K key, final V value) {
           context.forward(key, valueTransformer.transform(key, value));
       }
      

      Attachments

        Activity

          People

            mjsax Matthias J. Sax
            mviamari Michael Viamari
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: