Skip to content

Commit

Permalink
revert peer flow test, fix cdc
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Feb 7, 2024
1 parent 75c82d2 commit 7ec976b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flow/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ func (r *RecordItems) toMap(hstoreAsJSON bool) (map[string]interface{}, error) {
if !ok {
return nil, errors.New("expected *big.Rat value")
}

if bigRat == nil {
jsonStruct[col] = nil
continue
}
jsonStruct[col] = bigRat.FloatString(numeric.PeerDBNumericScale)
case qvalue.QValueKindFloat64:
floatVal, ok := v.Value.(float64)
Expand Down

0 comments on commit 7ec976b

Please sign in to comment.