googleapis / nodejs-bigquery

Node.js client for Google Cloud BigQuery: A fast, economical and fully-managed enterprise data warehouse for large-scale data analytics.
https://cloud.google.com/bigquery/
Apache License 2.0
465 stars 211 forks source link

Big Query initialization using project ID and options. #1195

Closed tyrone-statsig closed 1 year ago

tyrone-statsig commented 1 year ago

Hello!

I'm setting up. a BigQuery client using the docs I found here https://github.com/googleapis/nodejs-bigquery/blame/6438df629e9adb707338bd53959c7c10e0ae2936/samples/clientJSONCredentials.js#L23

and https://cloud.google.com/bigquery/docs/authentication/service-account-file#node.js.

image

I've had a docker file run a npm build command that builds the following code image.

I get a compile error about BigQueryOptions not having a projectId parameter. I'm confused because the docs for BigQueryOptions https://cloud.google.com/nodejs/docs/reference/bigquery/latest/bigquery/bigqueryoptions don't support projectId but the links above set it up in a way that does provide a projectId?

If there's any clarification on this, it'd be much appreciated! :) thank you!

alvarowolfx commented 1 year ago

Hey @tyrone-statsig, can you give more information on which version of the package are you using and facing issues ? I tested here and the attribute exists to pass projectId as a parameter to the client. This can be tracked here:

alvarowolfx commented 1 year ago

Closing as was not possible to reproduce here. Feel free to reopen if the issue persist.