yugabyte / debezium-connector-yugabytedb

A Debezium CDC connector for the YugabyteDB database
https://docs.yugabyte.com/stable/explore/change-data-capture/using-logical-replication/yugabytedb-connector/
Apache License 2.0
12 stars 8 forks source link

Using decimal.handling.mode=precision throws error #336

Open suranjan opened 4 months ago

suranjan commented 4 months ago

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.