Skip to content

Inf turns into NULL #649

@eheinzen

Description

@eheinzen

I'm guessing this is a limitation of BigQuery, but in case it's not: R's Inf doesn't make it into BigQuery as such; it turns into NULL, which then gets read back into R as NA.

> x <- data.frame(hi = c(1, 1.2, Inf))
> DBI::dbCreateTable(conn, "blah", x)
> DBI::dbAppendTable(conn, "blah", x, billing = conn@billing)
> DBI::dbGetQuery(conn, "select * from blah")
# A tibble: 3 × 1
     hi
  <dbl>
1   1  
2   1.2
3  NA  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions