When using spark_read_bigquery there seems to be a difference between querying a table vs querying using a SQL query. Specifically, table queries require setting config[["spark.hadoop.google.cloud.auth.service.account.json.keyfile"]] = gcpJsonKeyfile while SQL queries seem to require setting the GOOGLE_APPLICATION_CREDENTIALS environment variable.
When using
spark_read_bigquery
there seems to be a difference between querying a table vs querying using a SQL query. Specifically, table queries require settingconfig[["spark.hadoop.google.cloud.auth.service.account.json.keyfile"]] = gcpJsonKeyfile
while SQL queries seem to require setting theGOOGLE_APPLICATION_CREDENTIALS
environment variable.