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

JavaDocs of KStream#ValueTransform incorrect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.2, 2.6.0, 2.4.2, 2.5.1
    • Component/s: streams
    • Labels:
      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

            • Assignee:
              mjsax Matthias J. Sax
              Reporter:
              mviamari Michael Viamari
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: