Open GoogleCodeExporter opened 9 years ago
Hello,
float type can't be null. Float object can be null.
Please refer to:
http://stackoverflow.com/questions/5107368/how-to-null-a-variable-of-type-float
We return double / int / float types, which can't be null.
A possible fix could be to convert these to 0 values, which you can do in
bigquery as well.
Original comment by guni...@starschema.net
on 10 Sep 2014 at 10:34
BigQuery allows them to be nullable and allows nulls. Google BQ allows null to
be loaded, and the BQ Console returns null value when query. Simba ODBC driver
returns null as well.
Note: null does not have the same meaning as 0. null means no value has been
attributed to the record whereas 0 means a value has been definitively set. We
perform different operations on this record from a reporting perspective if the
value is null.
Attachment 1: Screenshot of BQ Schema with column defined as Float and set as
Nullable.
Attachment 2: Screenshot of BQ Query returning null for Float values.
Original comment by dougstou...@motorola.com
on 10 Sep 2014 at 10:57
Attachments:
Update on this issue. The driver IS able to identify FLOAT records with null
via a condition statement. It just won't return it as a result set. There
seems to be a Driver side requirement or definition that it is Not Null to be
returned as a result.
SELECT CAL_MONTH, FORECAST_QTY
FROM [zPlayground.test_issue_jdbc]
where FORECAST_QTY is not null;
2013-MAR03 15.001
2013-FEB <Error>
2013-JAN 20.0
SELECT CAL_MONTH, FORECAST_QTY
FROM [zPlayground.test_issue_jdbc]
where FORECAST_QTY is not null;
2013-MAR03 15.001
2013-JAN 20.0
Original comment by dougstou...@motorola.com
on 11 Sep 2014 at 12:12
Hi,
The Google Api IS indeed aware of nulls.
I fixed the bug in the starchema driver on my fork but I do not how to
integrate it in the main repository.
Fix:
https://github.com/jsiessataccess/starschema-bigquery-jdbc/commit/b17fca333fde0a
305bbc560dc9c2a1f58be85821
Original comment by Johann.S...@theaccessgroup.fr
on 2 Apr 2015 at 8:26
Original issue reported on code.google.com by
dougstou...@motorola.com
on 10 Sep 2014 at 4:17