Skip to content

Commit

Permalink
bq: fix string representation
Browse files Browse the repository at this point in the history
pb.Tag_String_ is a byte array, so we need to convert it to String before saving it.

Change-Id: Ib336cfe16be0d9ca3390fc550a8d6efcd5f033b0
  • Loading branch information
elek committed Oct 19, 2023
1 parent 5d77ebb commit 2a9703e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eventkitd-bigquery/bigquery/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (r *Record) Save() (map[string]bigquery.Value, string, error) {
case *pb.Tag_Int64:
fields[field] = v.Int64
case *pb.Tag_String_:
fields[field] = v.String_
fields[field] = string(v.String_)
case *pb.Tag_Timestamp:
fields[field] = time.Unix(v.Timestamp.Seconds, int64(v.Timestamp.Nanos))
}
Expand Down

0 comments on commit 2a9703e

Please sign in to comment.