Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
martinstuder committed Oct 21, 2024
1 parent 7defa63 commit e18e4cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/spark_read_bigquery.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ spark_read_bigquery <- function(sc,
...) {
parameters <- c(list(), additionalParameters)
if (!is.null(serviceAccountKeyFile)) {
parameters[["credentialsFile"]] = normalizePath(serviceAccountKeyFile, winslash = "/")
parameters[["credentialsFile"]] = gsub("\\\\", "/", serviceAccountKeyFile)
}

if (!is.null(datasetId) && !is.null(tableId)) {
Expand Down
2 changes: 1 addition & 1 deletion R/spark_write_bigquery.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ spark_write_bigquery <- function(data,
additionalParameters)

if (!is.null(serviceAccountKeyFile)) {
parameters[["credentialsFile"]] = normalizePath(serviceAccountKeyFile, winslash = "/")
parameters[["credentialsFile"]] = gsub("\\\\", "/", serviceAccountKeyFile)
}

spark_write_source(data,
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
bigquery_defaults(
billingProjectId = Sys.getenv("BILLING_PROJECT_ID"),
materializationDataset = Sys.getenv("MATERIALIZATION_DATASET"),
serviceAccountKeyFile = normalizePath(Sys.getenv("GOOGLE_APPLICATION_CREDENTIALS"), winslash = "/")
serviceAccountKeyFile = Sys.getenv("GOOGLE_APPLICATION_CREDENTIALS")
)

options(spark.version = Sys.getenv("SPARK_VERSION", "3.5"))

0 comments on commit e18e4cd

Please sign in to comment.