From 97d4da3779b8f661059aa5793c688263cff0a24a Mon Sep 17 00:00:00 2001 From: Nathan <148575555+nathan-artie@users.noreply.github.com> Date: Tue, 25 Jun 2024 18:29:17 -0700 Subject: [PATCH] Comment --- lib/debezium/decimal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/debezium/decimal.go b/lib/debezium/decimal.go index e87f48428..03d5ba065 100644 --- a/lib/debezium/decimal.go +++ b/lib/debezium/decimal.go @@ -73,7 +73,7 @@ func EncodeDecimal(decimal *apd.Decimal) ([]byte, int32) { return encodeBigInt(bigIntValue), -decimal.Exponent } -// EncodeDecimalWithScale is used to encode a [apd.Decimal] to [org.apache.kafka.connect.data.Decimal] +// EncodeDecimalWithScale is used to encode a [apd.Decimal] to [org.apache.kafka.connect.data.Decimal]. // using a specific scale. func EncodeDecimalWithScale(_decimal *apd.Decimal, scale int32) []byte { targetExponent := -scale // Negate scale since [Decimal.Exponent] is negative. @@ -84,7 +84,7 @@ func EncodeDecimalWithScale(_decimal *apd.Decimal, scale int32) []byte { return bytes } -// DecodeDecimal is used to decode `org.apache.kafka.connect.data.Decimal`. +// DecodeDecimal is used to decode [org.apache.kafka.connect.data.Decimal]. func DecodeDecimal(data []byte, precision *int, scale int) *decimal.Decimal { _decimal := apd.NewWithBigInt(new(apd.BigInt).SetMathBigInt(decodeBigInt(data)), -int32(scale)) return decimal.NewDecimal(precision, scale, _decimal)