Skip to content

Commit

Permalink
Remove cast
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Jun 14, 2024
1 parent 044861f commit cb31729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/bigquery/storagewrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func rowToMessage(row map[string]any, columns []columns.Column, messageDescripto
if err != nil {
return nil, fmt.Errorf("failed to parse string to float64: %w", err)
}
message.Set(field, protoreflect.ValueOfFloat64(float64(floatValue)))
message.Set(field, protoreflect.ValueOfFloat64(floatValue))
default:
return nil, fmt.Errorf("expected float32/float64/int32/int64 recieved %T with value %v", value, value)
}
Expand Down

0 comments on commit cb31729

Please sign in to comment.