Skip to content

Commit

Permalink
Use normalizePath for service account key file
Browse files Browse the repository at this point in the history
  • Loading branch information
martinstuder committed Oct 21, 2024
1 parent 39ba465 commit 6b59102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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"]] = serviceAccountKeyFile
parameters[["credentialsFile"]] = normalizePath(serviceAccountKeyFile, winslash = "/")
}

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"]] = serviceAccountKeyFile
parameters[["credentialsFile"]] = normalizePath(serviceAccountKeyFile, winslash = "/")
}

spark_write_source(data,
Expand Down

0 comments on commit 6b59102

Please sign in to comment.