Skip to content

Commit

Permalink
Change
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Jun 14, 2024
1 parent c8da513 commit 3472b8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clients/bigquery/storagewrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ func rowToMessage(row map[string]any, columns []columns.Column, messageDescripto
daysSinceEpoch := extTime.Unix() / (60 * 60 * 24)
message.Set(field, protoreflect.ValueOfInt32(int32(daysSinceEpoch)))
case ext.DateTimeKindType:
ts := timestamppb.New(extTime.Time)
if err := ts.CheckValid(); err != nil {
if err := timestamppb.New(extTime.Time).CheckValid(); err != nil {
return nil, err
}
message.Set(field, protoreflect.ValueOfInt64(extTime.UnixMicro()))
Expand Down

0 comments on commit 3472b8a

Please sign in to comment.