The default decimal handling mode is precision. The use of this mode fails with the exception. Caused by: org.apache.kafka.connect.errors.DataException: Decimal value has mismatching scale for given Decimal schema. Schema has scale -1, value has scale 0.
This is due to the decimal type metadata not present in the Debezium and using the default value to decode.
The default decimal handling mode is
precision
. The use of this mode fails with the exception. Caused by: org.apache.kafka.connect.errors.DataException: Decimal value has mismatching scale for given Decimal schema. Schema has scale -1, value has scale 0.This is due to the decimal type metadata not present in the Debezium and using the default value to decode.