Open DmitryTuryshev opened 1 week ago
case UUID:
if (value instanceof String && ((String) value).isEmpty()) {
// Write a zero UUID (all bits set to zero)
UUID zeroUUID = new UUID(0L, 0L);
BinaryStreamUtils.writeUuid(stream, zeroUUID);
LOGGER.debug("Written zero UUID for empty string value.");
} else {
BinaryStreamUtils.writeUuid(stream, UUID.fromString((String) value));
}
break;
I just replaced this case on the above. The built project works well. https://github.com/ClickHouse/clickhouse-kafka-connect/blob/fef6bb714d2cca61bead75f16dd9c09ea215b9c5/src/main/java/com/clickhouse/kafka/connect/sink/db/ClickHouseWriter.java#L611
Please give me advice if I forgot something.
https://github.com/ClickHouse/clickhouse-kafka-connect/blob/fef6bb714d2cca61bead75f16dd9c09ea215b9c5/src/main/java/com/clickhouse/kafka/connect/sink/db/ClickHouseWriter.java#L611
Example debezium record here trigger_id_uuid is empty, but not null :
Error trace: