Closed GoogleCodeExporter closed 9 years ago
Here is a example of JSON returned by GBQ which trigger exception when parsed:
{"data":
{"kind":"bigquery#queryResults",
"fields":
[{"id":"cust_id","type":"int64"},
{"id":"order_period","type":"string"},
{"id":"order_amount","type":"double"}],
"rows":
[{"f":[{"v":"1"},{"v":"2009-01-0"},{"v":10000.0}]},
{"f":[{"v":"1"},{"v":"2009-02-0"},{"v":15000.0}]},
{"f":[{"v":"1"},{"v":"2009-03-0"},{"v":18000.0}]},
{"f":[{"v":"1"},{"v":"2009-04-0"},{"v":12000.0}]},
{"f":[{"v":"1"},{"v":"2009-05-0"},{"v":11000.0}]}]
}
}
Original comment by dreamfac...@gmail.com
on 31 Jul 2010 at 9:06
Thanks for reporting your experience. As the exception message says, please
try using Float type instead of String for BQ type "double". For further
discussion of this issue, please refer to the new project site:
http://code.google.com/p/google-api-java-client/
I haven't ported the bigquery sample yet, but I do expect to do so sometime
over the next two weeks.
Original comment by yan...@google.com
on 1 Aug 2010 at 12:13
Original issue reported on code.google.com by
dreamfac...@gmail.com
on 30 Jul 2010 at 10:46