lidavidm commented on code in PR #3174: URL: https://github.com/apache/arrow-adbc/pull/3174#discussion_r2230432138
########## go/adbc/driver/bigquery/connection.go: ########## @@ -248,6 +258,35 @@ type bigQueryTokenResponse struct { TokenType string `json:"token_type"` } +// bigqueryClientFactory is an interface for creating BigQuery clients. +// This is used for mocking in tests. +type bigqueryClientFactory interface { + NewClient(ctx context.Context, projectID string, opts ...option.ClientOption) (*bigquery.Client, error) + EnableStorageReadClient(ctx context.Context, client *bigquery.Client, opts ...option.ClientOption) error Review Comment: Ultimately my question above still stands: I don't actually see this being used to mock clients in tests, so why are we preemptively introducing the abstraction? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org