Skip to content

Commit

Permalink
Adding a TODO.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Jun 17, 2024
1 parent 5fde6d7 commit 79e6492
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/debezium/decimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (

// EncodeDecimal is used to encode a string representation of a number to `org.apache.kafka.connect.data.Decimal`.
func EncodeDecimal(value string, scale int) ([]byte, error) {
// TODO: Refactor scale to be uint16

bigFloatValue := new(big.Float)
if _, success := bigFloatValue.SetString(value); !success {
return nil, fmt.Errorf("unable to use %q as a floating-point number", value)
Expand Down

0 comments on commit 79e6492

Please sign in to comment.