Drop

The drop transform function drops a record from further processing.
Use in conjunction with when to selectively drop records.
The step name is drop, and the UserConfig is controlled here: {"steps": [{"type": "drop", "when": "value.firstName == value1"}]}.

Parameters:

Parameter Description

when

By default, the record is dropped. Set this parameter to selectively choose when to drop a message.

Example

  1. Produce an AVRO message with the payload: {firstName: value1, lastName: value2}.

  2. The function drops records matching the when statement value.firstName == value1.
    There is no output.

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