Skip to content

Commit f06dd83

Browse files
shohei-ihayaohaibbq
authored andcommitted
migrate go-genproto to google-cloud-go
1 parent 407235d commit f06dd83

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ require (
2424
go.uber.org/zap v1.21.0
2525
golang.org/x/sync v0.12.0
2626
google.golang.org/api v0.170.0
27-
google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9
2827
google.golang.org/genproto/googleapis/rpc v0.0.0-20240314234333-6e1732d8331c
2928
google.golang.org/grpc v1.62.1
3029
google.golang.org/protobuf v1.34.2
31-
modernc.org/sqlite v1.37.0
3230
)
3331

32+
require google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 // indirect
33+
3434
require (
3535
cloud.google.com/go v0.112.1 // indirect
3636
cloud.google.com/go/compute v1.24.0 // indirect
@@ -104,6 +104,7 @@ require (
104104
modernc.org/libc v1.62.1 // indirect
105105
modernc.org/mathutil v1.7.1 // indirect
106106
modernc.org/memory v1.9.1 // indirect
107+
modernc.org/sqlite v1.37.0
107108
)
108109

109110
replace github.com/goccy/go-zetasqlite => github.com/Recidiviz/go-zetasqlite v0.18.0-recidiviz.15

server/storage_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import (
99
"sync"
1010
"time"
1111

12+
storagepb "cloud.google.com/go/bigquery/storage/apiv1/storagepb"
1213
"github.com/apache/arrow/go/v10/arrow"
1314
"github.com/apache/arrow/go/v10/arrow/array"
1415
"github.com/apache/arrow/go/v10/arrow/ipc"
1516
"github.com/apache/arrow/go/v10/arrow/memory"
1617
"github.com/goccy/go-json"
1718
goavro "github.com/linkedin/goavro/v2"
1819
bigqueryv2 "google.golang.org/api/bigquery/v2"
19-
storagepb "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1"
2020
"google.golang.org/genproto/googleapis/rpc/status"
2121
"google.golang.org/grpc"
2222
"google.golang.org/grpc/codes"

types/storagepb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package types
22

33
import (
4+
storagepb "cloud.google.com/go/bigquery/storage/apiv1/storagepb"
45
bigqueryv2 "google.golang.org/api/bigquery/v2"
5-
storagepb "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1"
66
)
77

88
func TableToProto(t *bigqueryv2.Table) *storagepb.TableSchema {

0 commit comments

Comments
 (0)