Skip to content

Commit

Permalink
eventkitd-bigquery: skip unknown field types
Browse files Browse the repository at this point in the history
  • Loading branch information
jtolio committed Jan 23, 2024
1 parent 48bd260 commit dc40302
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions eventkitd-bigquery/bigquery/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ tagloop:
f.Type = bigquery.StringFieldType
case *pb.Tag_Timestamp:
f.Type = bigquery.TimestampFieldType
default:
continue tagloop
}
schema = append(schema, f)
}
Expand Down
7 changes: 4 additions & 3 deletions eventkitd-bigquery/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
CGO_ENABLED=0 go install
scp $(which eventkitd-bigquery) eventkit:
ssh eventkitd sudo mv eventkitd-bigquery /usr/local/bin/eventkitd-bigquery
set -euxo pipefail
CGO_ENABLED=0 go build -v -o eventkitd-bigquery .
scp eventkitd-bigquery eventkitd.datasci.storj.io:
ssh eventkitd.datasci.storj.io sudo mv eventkitd-bigquery /usr/local/bin/eventkitd-bigquery

0 comments on commit dc40302

Please sign in to comment.