Skip to content

Commit

Permalink
fix one more
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik authored and Amogh-Bharadwaj committed Feb 7, 2024
1 parent 81ef9e3 commit a1f0d96
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 @@ -458,6 +458,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
}

decimalValue := num.FloatString(100)
num.SetString(decimalValue)
if c.Nullable {
Expand Down

0 comments on commit a1f0d96

Please sign in to comment.