Open GoogleCodeExporter opened 9 years ago
According to the BigQuery documentation, BigQuery's INTEGER have 64 bits.
Link: https://cloud.google.com/bigquery/preparing-data-for-bigquery#datatypes
According to the Java.Sql documentation, following types are available:
INTEGER - 32 bits
BIGINT - 64 bits
Source (look for "BIGINT" in the page) :
http://download.java.net/jdk7/archive/b125/docs/technotes/guides/jdbc/getstart/m
apping.html
So the resultSetMetaData has to return BIGINT.
A fix is available on my fork but I do not know how to integrate it to the
official repository.
Fix:
https://github.com/jsiessataccess/starschema-bigquery-jdbc/commit/1de2efb8dbbf59
041692ef92788f5d1de9c72ae0
If you do not use the meta data, then directly use getLong(...) as long have 64
bits.
Original comment by Johann.S...@theaccessgroup.fr
on 2 Apr 2015 at 9:35
Original issue reported on code.google.com by
supp...@yellowfin.com.au
on 26 Jun 2014 at 2:21