-
Notifications
You must be signed in to change notification settings - Fork 107
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
bit64 integer64 is broken and should not be used #557
Comments
Hi - thanks for the note. Looks like the operator behavior is noted in the documentation for
As I am not aware of a better alternative, and as there is already a mechanism to change the default, I am biased to leave as is. Thanks again. |
Thanks for this, I am similarly puzzled. If I understand that note correctly, then any bit64 output from a database can only feed operations with bit64 outputs. For example, a dplyr summarise would be ok in the case of a sum or median but in the case of a mean you are stuck with no solution. Did I misread something? What is the best way would you recommend summarising a bit64 column returned from a database? |
Hi: I think you are wrestling with a limitation of [R] ( handling / triage of 64 bit values ) more-so than anything to do with I don't mean to brush your question away but I think it is probably best discussed in a different forum. |
Hi all. Thanks for flagging this concern. I have taken over maintenance of {bit64}, so do feel free to take up any issues you have directly on the issue tracker there -- I can't promise what will/won't be fixed (there are some fundamental issues that might not be fixable), but will be happy to see highlighted the concerns that users have. Ultimately I'd prefer base R to get an |
Issue Description and Expected Result
bit64 is fundamentally broken. Examples:
Thus odbc should never convert to bit64 integer64. Unfortunately newer databases (e.g. Redshift / Athena) return COUNT() and SUM(some_int) as bigint and the default option for dbGetQuery is bigint = "integer64".
Unfortunately it also looks like bit64 has been abandoned. The underlying issues might not be a big deal as there are even pull requests for the above mentioned #12 here: r-lib/bit64#13. But no change since 2 1/2 years.
Database
Any database that has bigint. For example Redshift or Athena.
Reproducible Example
Session Info
The text was updated successfully, but these errors were encountered: