Kafka Connect AdjustPrecisionAndScale SMT Usage Reference for Confluent Cloud

The AdjustPrecisionAndScale single message transform (SMT) is used to validate and ensure that all decimal fields in a Kafka Connect structure fall within a desired numerical range. For example, it allows you to set a maximum precision and maximum scale, and optionally require a positive scale, ensuring data integrity before it is written to a sink that has strict decimal requirements.

Limitations

  • For Sink connectors, the Schema Registry schema is not updated by the AdjustPrecisionAndScale SMT. Since transforms run after the converter saves the schema, the Schema Registry retains the original precision and scale values.

Important

Confluent only supports this SMT on Confluent Cloud. For complete details, see the official AdjustPrecisionAndScale SMT documentation.