Skip to content

Commit

Permalink
int array nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Feb 13, 2024
1 parent 2f8acd7 commit 076ed24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flow/connectors/postgres/qvalue_convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,11 @@ func parseFieldFromQValueKind(qvalueKind qvalue.QValueKind, value interface{}) (
case []interface{}:
int32Array := make([]int32, len(v))
for i, val := range v {
int32Array[i] = val.(int32)
if val == nil {
int32Array[i] = 0
} else {
int32Array[i] = val.(int32)
}
}
val = qvalue.QValue{Kind: qvalue.QValueKindArrayInt32, Value: int32Array}
default:
Expand Down

0 comments on commit 076ed24

Please sign in to comment.