Aiven-Open / http-connector-for-apache-kafka

Apache Kafka Connect sink connector for HTTP
Apache License 2.0
88 stars 44 forks source link

Add support for LinkedHashMap in record value, enabling compatibility with SMTs #217

Closed AbdelkaderR closed 6 months ago

AbdelkaderR commented 6 months ago

Description

This pull request addresses an issue where the HTTP Connector for Apache Kafka does not support LinkedHashMap as the record value, leading to errors when used in conjunction with Single Message Transforms (SMTs) that return LinkedHashMap. The specific error message is: "Record value must be String, Schema Struct, or HashMap, but LinkedHashMap is given."

Changes Made

Testing

How to Verify

  1. Build and test the modified connector.
  2. Ensure that the connector now accepts and handles LinkedHashMap as the record value without generating errors.

Checklist