如何为 Redshift 输出负 java.math.BigInteger 64 位数
How to output negative java.math.BigInteger 64 bit numbers for Redshift
如何配置 java.math.BigInteger 以 Redshift BigInteger 支持的十进制格式输出,以便我可以通过 COPY 命令提取它?当设置 64 位时,我有一个 64 位数字不输出为负整数。
已根据反馈更新...这将适用于 64 位数字
public String toString(BigInteger bigInteger){
String result;
result = Long.toString(bigInteger.longValue());
return result;
}
如何配置 java.math.BigInteger 以 Redshift BigInteger 支持的十进制格式输出,以便我可以通过 COPY 命令提取它?当设置 64 位时,我有一个 64 位数字不输出为负整数。
已根据反馈更新...这将适用于 64 位数字
public String toString(BigInteger bigInteger){
String result;
result = Long.toString(bigInteger.longValue());
return result;
}