Skip to content

Commit

Permalink
Unbox autodetect parameter
Browse files Browse the repository at this point in the history
Fixes #361
  • Loading branch information
hadley committed May 1, 2020
1 parent f0cccaf commit a2ad21d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# bigrquery (development version)

* `bq_perform_upload()` works once again (#361). It seems like the generated
JSON was always incorrect, but Google's type checking only recently become
strict enough to detect the problem.

# bigrquery 1.2.0

## Auth from gargle
Expand Down
2 changes: 1 addition & 1 deletion R/bq-perform.R
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ bq_perform_upload <- function(x, values,
fields <- as_bq_fields(fields)
load$schema <- list(fields = as_json(fields))
} else if (!bq_table_exists(x)) {
load$autodetect <- TRUE
load$autodetect <- unbox(TRUE)
}

config <- list(configuration = list(load = load))
Expand Down

0 comments on commit a2ad21d

Please sign in to comment.