Handling deserialization errors

A record can fail to deserialize, for example when it does not match the schema of the table. A deserialization policy decides what the job does with such a record.

Deserialization policies

Set the policy on the Deserialization tab of the Kafka table editor, in Deserialization Failure Handler Policy.

Table 1. Deserialization Failure Handler Policy
Policy What happens to a bad record
Fail The job fails with an exception. This is the default.
Ignore Cloudera SQL Stream Builder (SSB) skips the record without writing a log entry.
Ignore and Log SSB skips the record and logs it.
Save to DLQ SSB writes the record to a dead-letter queue (DLQ) topic.

If you select Save to DLQ, enter the topic in DLQ Topic Name. Create the topic first.

To set the policy in DDL, see Setting the deserialization policy in DDL.