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

Cast SMT should allow null value records to pass through

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0
    • None
    • None

    Description

      The current Cast SMT fails on a null record value (or a null record key), which is problematic for tombstone records. When a tombstone record reaches the transformation the error below is thrown:

      Caused by: org.apache.kafka.connect.errors.DataException: Only Map objects supported in absence of schema for [cast types], found: null
      at org.apache.kafka.connect.transforms.util.Requirements.requireMap(Requirements.java:38)
      

      Null values should instead be allowed to pass through as there is no cast transformation to be done, with the benefit of allowing the connector to handle the tombstone records as intended.

      Attachments

        Issue Links

          Activity

            People

              dosvath Daniel Osvath
              dosvath Daniel Osvath
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: