Skip to content

Commit

Permalink
fix one more
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Feb 7, 2024
1 parent 1085f8a commit 75c82d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flow/model/qvalue/avro_converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,10 @@ func (c *QValueAvroConverter) processNumeric() (interface{}, error) {
return nil, fmt.Errorf("invalid Numeric value: expected *big.Rat, got %T", c.Value.Value)
}

if num == nil {
return nil, nil
}

scale := numeric.PeerDBNumericScale
decimalValue := num.FloatString(scale)
num.SetString(decimalValue)
Expand Down

0 comments on commit 75c82d2

Please sign in to comment.