From 5bd49e910adc7d27e6691329d1f2d3d8c267a298 Mon Sep 17 00:00:00 2001 From: Martin Studer Date: Mon, 28 Oct 2024 11:40:07 +0100 Subject: [PATCH] test --- .github/workflows/ci-tests.yml | 1 - R/spark_read_bigquery.R | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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) }