Merge KeyValue

The merge-key-value transform function merges the fields of KeyValue records where both the key and value are structured types of the same schema type. (Currently only AVRO is supported).
The step name is merge-key-value and the UserConfig is controlled here: {"steps": [{"type": "merge-key-value"}]}.

Example

  1. Produce an AVRO message with the payload: {key={keyField: key}, value={valueField: value}}.

    • AVRO

    • Result

    {key={keyField: key}, value={valueField: value}}
    {key={keyField: key}, value={keyField: key, valueField: value}}
  2. The function merges the KeyValue fields (because both are AVRO type) and outputs {key={keyField: key}, value={keyField: key, valueField: value}} to the output topic.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com