-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
64-bit integers #94
Comments
yeah, this one is a serious bummer -- @hadley do you have strong opinions on any of the options out there for 64 bit integers in R? |
In DBI, 64-bit values will be represented as numeric, with an optional attribute that stores the original values as a character vector (see r-dbi/DBI#42 (comment) and discussion above). Perhaps bigrquery could implement such a strategy right away, then there will be less trouble adapting that to DBI. |
We're standardising on bit64, but it's a hassle to return all integers as int64 because then most ordinary R code won't work. |
Maybe best thing is to have an option to return all integers at bit64s? |
I'm still not sure we should be returning raw structure(
as.numeric(x),
class = "xxx",
integer64 = as.integer64(x)
) with suitable Are you considering an option as an argument to |
@krlmlr where did we end up API-wise on this with other packages? Argument to |
Yes: r-dbi/DBItest#133. Default would be |
Just chiming in here - the Firebase connection to BigQuery stores event timestamp as a 64-bit integer. It's called event_dim.timestamp_micros, as you can see here: https://support.google.com/firebase/answer/7029846?hl=en I guess I could convert it to a timestamp in SQL first (which i am currently trying to figure out), but it would be nice if this could be integrated into BigRQuery so that I could have a choice about making the adjustment in R once it was imported. |
Just seen this issue too, on the Google Adwords to BigQuery Transfer (more info here). My workaround was to cast as string the integer64 columns, but it will be nice to have it natively supported :) |
This problem can be problematic when downloading data from bigrquery, you have no warning that the data is not correctly parsed and the tibble returned just have NA values. For exemple, this command:
Despite the unique_key being an integer. Could we force the data to be downloaded with other types ? The workaround i can see now is saving the data on GCS , then downloading from GCS to your local machine and then reading it directly, but that's a pain we could spare, especially for small tables ! |
The |
Hi, |
Merge branch 'master' into f-r-dbi#94-64-bit-integers # Conflicts: # R/bigrquery.R
currently cannot be returned.
The text was updated successfully, but these errors were encountered: