You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(source/bigquery): add apiEndpoint for custom API host
Add an optional apiEndpoint (BIGQUERY_ENDPOINT) that overrides the BigQuery
API host for proxies, alternate front-ends, and local emulators. The endpoint
is applied across all three auth paths (ADC, impersonation, OAuth) and to both
the high-level client and the bigquery/v2 REST service.
normalizeAPIEndpoint preserves the URL scheme so http-only proxies and
emulators (e.g. http://localhost:9050) keep working, defaults a missing scheme
to https, appends a default port when absent (:80 for http, else :443), and
strips a trailing slash. Dataplex and ask_data_insights use different API
surfaces and are intentionally out of scope.
Co-authored-by: Cursor <cursoragent@cursor.com>
# maxQueryResultRows: 50 # Optional: Limits the number of rows returned by queries. Defaults to 50.
116
116
# maximumBytesBilled: 10737418240 # Optional: Per-query bytes scanned cap (in bytes).
117
+
# apiEndpoint: "https://my-proxy.example.com" # Optional: Override the BigQuery API host (URL or host:port) for proxies/emulators; http is supported. Unset or empty uses the default Google endpoint.
117
118
```
118
119
119
120
Initialize a BigQuery source that uses the client's access token:
# maxQueryResultRows: 50 # Optional: Limits the number of rows returned by queries. Defaults to 50.
137
138
# maximumBytesBilled: 10737418240 # Optional: Per-query bytes scanned cap (in bytes).
139
+
# apiEndpoint: "https://my-proxy.example.com" # Optional: Override the BigQuery API host (URL or host:port) for proxies/emulators; http is supported. Unset or empty uses the default Google endpoint.
138
140
```
139
141
140
142
## Reference
@@ -151,3 +153,4 @@ useClientOAuth: true
151
153
| impersonateServiceAccount | string | false | Service account email to impersonate when making BigQuery and Dataplex API calls. The authenticated principal must have the `roles/iam.serviceAccountTokenCreator` role on the target service account. [Learn More](https://cloud.google.com/iam/docs/service-account-impersonation)|
152
154
| maxQueryResultRows | int | false | The maximum number of rows to return from a query. Defaults to 50. |
153
155
| maximumBytesBilled | int64 | false | The maximum bytes billed per query. When set, queries that exceed this limit fail before executing. |
156
+
| apiEndpoint | string | false | Overrides the BigQuery API endpoint (URL or `host:port`) for proxies, alternate front-ends, or local emulators. `http` endpoints are supported (e.g. `http://localhost:9050`). Unset or empty uses the default Google endpoint. The scheme is preserved and a default port is added when missing (`80` for http, otherwise `443`). Dataplex and `ask_data_insights` use different API surfaces and are not affected. |
0 commit comments