[英]How to get a 64-bit integer back from Presto in R?
This article describes the state of 64-bit integers in R. 本文介绍了R中64位整数的状态。
R has no built-in type with lossless support for the full range of 64-bit or larger integers. R没有内置类型,无损支持全部64位或更大的整数。 Here, the following rules apply: 在此适用以下规则:
Values are returned as numeric 值以数字形式返回
Conversion to character always returns a lossless decimal representation of the data 转换为字符始终返回数据的无损十进制表示形式
When I fetch results from a Presto table with 64-bit ints, the results are numeric and mangled. 当我从具有64位int的Presto表中获取结果时,结果是数字的并被整齐。 However, when I convert them with as.character
, the results are character and mangled. 但是,当我用as.character
转换它们时,结果是字符化的并被as.character
。
Have you successfully retrieved 64-bit integers from Presto? 您是否已成功从Presto检索64位整数?
Did you use DBI with the Presto JDBC driver , or is there another way? 您是否将DBI与Presto JDBC驱动程序一起使用 ,还是有另一种方法?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.