Skip to content

Commit

Permalink
encode it as double
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Feb 7, 2024
1 parent c3a753d commit 4d9f740
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow/model/qvalue/avro_converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ func (c *QValueAvroConverter) ToAvroValue() (interface{}, error) {
}
return c.processNullableUnion("string", c.Value.Value)
case QValueKindFloat32:
if c.TargetDWH == QDWHTypeSnowflake || c.TargetDWH == QDWHTypeBigQuery {
return c.processNullableUnion("double", c.Value.Value)
}
return c.processNullableUnion("float", c.Value.Value)
case QValueKindFloat64:
if c.TargetDWH == QDWHTypeSnowflake || c.TargetDWH == QDWHTypeBigQuery {
Expand Down

0 comments on commit 4d9f740

Please sign in to comment.