Skip to content

Commit

Permalink
Store empty field description as empty string
Browse files Browse the repository at this point in the history
Fixes failing test
  • Loading branch information
hadley committed Mar 17, 2019
1 parent 5f06823 commit feb1a9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/bq-field.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ bq_field <- function(name, type, mode = "NULLABLE", fields = list(), description
type = toupper(type),
mode = toupper(mode),
fields = as_bq_fields(fields),
description = description
description = description %||% ""
),
class = "bq_field"
)
Expand Down Expand Up @@ -71,7 +71,7 @@ as_bq_field.list <- function(x) {
type = x$type,
mode = x$mode %||% "NULLABLE",
fields = lapply(x$fields, as_bq_field),
description = x$description
description = x$description %||% ""
)
}

Expand Down

0 comments on commit feb1a9a

Please sign in to comment.