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

Source support UUID formatting to hex in simplified JSON formatter

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Source
    • None
    • Java Drivers

      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()));
      }) 

       

       

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

              Created:
              Updated: