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

Support SerDe of Decimals in JSON that are not HEX encoded

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0
    • Component/s: None
    • Labels:
      None

      Description

      Most JSON data that utilizes precise decimal data represents it as a decimal string. Kafka Connect, on the other hand, only supports a binary HEX string encoding (see example below). We should support deserialization and serialization for any of the following types:

      {
        "asHex": "D3J5",
        "asString": "10.12345"
        "asNumber": 10.2345
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                agavra Almog Gavra
                Reporter:
                agavra Almog Gavra
                Reviewer:
                Randall Hauch
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: