Skip to content

Commit

Permalink
Change value of column weather in default_play, so BigQuery generates…
Browse files Browse the repository at this point in the history
… a column of type string instead of BYTE. Fixes nflverse#389
  • Loading branch information
rstats-tips committed Oct 15, 2022
1 parent 953f7dc commit fb39b49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ write_pbp <- function(seasons, dbConnection, tablename){
purrr::walk(seasons, function(x, p){
pbp <- nflreadr::load_pbp(x)
if (!DBI::dbExistsTable(dbConnection, tablename)){
default_play$weather <- "some other string"
pbp <- dplyr::bind_rows(default_play, pbp)
}
if (DBI::dbExistsTable(dbConnection, tablename)) {
Expand Down

0 comments on commit fb39b49

Please sign in to comment.