Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Jan 17, 2024
1 parent 1b1887c commit 2ca5d66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flow/model/qvalue/avro_converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ func (c *QValueAvroConverter) ToAvroValue() (interface{}, error) {
}
if c.Nullable {
return goavro.Union("long.timestamp-micros", t.(int64)), nil
} else {
return t.(int64), nil
}
return t.(int64), nil

case QValueKindDate:
t, err := c.processGoDate()
if err != nil || t == nil {
Expand Down Expand Up @@ -255,7 +255,7 @@ func (c *QValueAvroConverter) processGoDate() (interface{}, error) {

t, ok := c.Value.Value.(time.Time)
if !ok {
return nil, fmt.Errorf("invalid Time value")
return nil, fmt.Errorf("invalid Time value for Date")
}

// Snowflake has issues with avro timestamp types, returning as string form of the int64
Expand Down

0 comments on commit 2ca5d66

Please sign in to comment.