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

Source support UUID formatting to hex in simplified JSON formatter

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • Source
    • None
    • Java Drivers

    Description

      We're having substantial struggles utilizing the source connector "out-of-the-box" because it is not able to convert binary (subtype=4) UUID values to hexidecimal string form like it does for OIDs when using the SimplifiedJson JsonWriterSettingsProvider.

       

      This could be easily remedied with a conversion for Standard UUIDs included in the provider like

      .binaryConverter(
          (value, writer) -> {
              if (BsonBinarySubType.UUID_STANDARD.getValue() == value.getType())
                  writer.writeString(value.asUuid().toString());
              else
               writer.writeString(Base64.getEncoder().encodeToString(value.getData()));
      }) 

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            rick.hanton@kubra.com Rick Hanton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: