diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index c1dd343..ee8a8f6 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -150,7 +150,6 @@ jobs: shell: bash run: | echo "$ADC" > $BIGQUERY_APPLICATION_CREDENTIALS - grep project_id $BIGQUERY_APPLICATION_CREDENTIALS - name: Run R CMD check uses: r-lib/actions/check-r-package@v2 diff --git a/R/spark_read_bigquery.R b/R/spark_read_bigquery.R index c2ffd62..2896381 100644 --- a/R/spark_read_bigquery.R +++ b/R/spark_read_bigquery.R @@ -93,6 +93,7 @@ spark_read_bigquery <- function(sc, ...) { parameters <- c(list(), additionalParameters) if (!is.null(serviceAccountKeyFile)) { + spark_session_config(sc, config = "credentialsFile", value = serviceAccountKeyFile) parameters[["credentialsFile"]] = gsub("\\\\", "/", serviceAccountKeyFile) }