Problem Note 68826: Inserting data into a Google BigQuery Table using the JDBC engine might fail with "...Value has type FLOAT64 which cannot be inserted into column..."
Inserting data into a Google BigQuery table might result in the following error:
ERROR: During insert: [Simba][BigQueryJDBCDriver](100032) Error executing query job. Message: Value has type FLOAT64 which cannot be inserted into column column-name, which has type INT64 at [line:column]
The error has been observed when the following are true:
- You use SAS/ACCESS® Interface to JDBC to write data to Google BigQuery.
- Your LIBNAME statement uses the BULKLOAD=YES table option. YES is the default value for this option. However, see Bulk Loading for JDBC.
- You use a Magnitude Simba driver that supports batch updates.
- The data type of the column that is being inserted is INTEGER.
To check whether your Java Database Connectivity (JDBC) driver supports batch updates, run a SASTRACE system option with your LIBNAME statement. Here is an example:
OPTIONS SASTRACE='d,,,' SASTRACELOC=SASLOG NOSTSUFFIX ;
LIBNAME libref JDBC BULKLOAD=YES CLASSPATH="path-to-driver" DRIVER="driver-name" URL="jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;connection-options" ;
Check the log to see whether it contains a reference to supportsBatchUpdates. If it is set to TRUE, then the BULKLOAD option is supported by your driver. Here is an example:
JDBC: DatabaseMetaData#supportsBatchUpdates= TRUE
Simba supplies the JDBC driver for Google BigQuery as a ZIP archive in this format: SimbaBigQueryJDBC42-[version-number].zip.
SAS has found that version 1.2.0.1000 of this driver does not support batch updates, but version 1.2.21.1025 does support batch updates.
The only workaround is to set the BULKLOAD=NO option in your LIBNAME statement.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to JDBC | Microsoft® Windows® for x64 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows 8 Enterprise 32-bit | 9.41 | | 9.4 TS1M7 | |
Microsoft Windows 8 Enterprise x64 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows 8 Pro 32-bit | 9.41 | | 9.4 TS1M7 | |
Microsoft Windows 8 Pro x64 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows 8.1 Enterprise 32-bit | 9.41 | | 9.4 TS1M7 | |
Microsoft Windows 8.1 Enterprise x64 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows 8.1 Pro 32-bit | 9.41 | | 9.4 TS1M7 | |
Microsoft Windows 8.1 Pro x64 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows 10 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows 11 | 9.41 | | 9.4 TS1M7 | |
Microsoft Windows Server 2008 | 9.41 | | 9.4 TS1M7 | |
Microsoft Windows Server 2008 R2 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows Server 2008 for x64 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows Server 2012 Datacenter | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows Server 2012 R2 Datacenter | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows Server 2012 R2 Std | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows Server 2012 Std | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows Server 2016 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows Server 2019 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Microsoft Windows Server 2022 | 9.41 | | 9.4 TS1M7 | |
Windows 7 Enterprise 32 bit | 9.41 | | 9.4 TS1M7 | |
Windows 7 Enterprise x64 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Windows 7 Home Premium 32 bit | 9.41 | | 9.4 TS1M7 | |
Windows 7 Home Premium x64 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Windows 7 Professional 32 bit | 9.41 | | 9.4 TS1M7 | |
Windows 7 Professional x64 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Windows 7 Ultimate 32 bit | 9.41 | | 9.4 TS1M7 | |
Windows 7 Ultimate x64 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
64-bit Enabled AIX | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
64-bit Enabled Solaris | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
HP-UX IPF | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Linux for x64 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
Solaris for x64 | 9.41 | 2021.2.3 | 9.4 TS1M7 | Viya |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
If you are using a Magnitude Simba JDBC driver that supports BULKLOAD (supportsBatchUpdates= TRUE), and the target BigQuery table has an INTEGER column, an error can occur.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2022-01-27 14:05:49 |
Date Created: | 2022-01-24 04:15:33 |