File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 44 "flag"
55 "io/ioutil"
66
7+ "github.com/m-lab/go/cloud/bqx"
78 "github.com/m-lab/go/rtx"
89 "github.com/m-lab/msak/pkg/ndt8/model"
910
@@ -24,6 +25,7 @@ func main() {
2425 ndt8Result := model.NDT8Result {}
2526 sch , err := bigquery .InferSchema (ndt8Result )
2627 rtx .Must (err , "failed to generate ndt8 schema" )
28+ sch = bqx .RemoveRequired (sch )
2729 b , err := sch .ToJSONFields ()
2830 rtx .Must (err , "failed to marshal schema" )
2931 ioutil .WriteFile (ndt8Schema , b , 0o644 )
Original file line number Diff line number Diff line change @@ -73,4 +73,5 @@ require (
7373 google.golang.org/grpc v1.54.0 // indirect
7474 google.golang.org/protobuf v1.30.0 // indirect
7575 gopkg.in/square/go-jose.v2 v2.6.0 // indirect
76+ gopkg.in/yaml.v2 v2.4.0 // indirect
7677)
Original file line number Diff line number Diff line change @@ -630,6 +630,7 @@ gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
630630gopkg.in/yaml.v2 v2.2.4 /go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI =
631631gopkg.in/yaml.v2 v2.2.5 /go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI =
632632gopkg.in/yaml.v2 v2.3.0 /go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI =
633+ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY =
633634gopkg.in/yaml.v2 v2.4.0 /go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ =
634635gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c /go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM =
635636gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA =
You can’t perform that action at this time.
0 commit comments