SUPPORT / SAMPLES & SAS NOTES
 

Support

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..."

DetailsHotfixAboutRate It

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

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to JDBCMicrosoft® Windows® for x649.412021.2.39.4 TS1M7Viya
Microsoft Windows 8 Enterprise 32-bit9.419.4 TS1M7
Microsoft Windows 8 Enterprise x649.412021.2.39.4 TS1M7Viya
Microsoft Windows 8 Pro 32-bit9.419.4 TS1M7
Microsoft Windows 8 Pro x649.412021.2.39.4 TS1M7Viya
Microsoft Windows 8.1 Enterprise 32-bit9.419.4 TS1M7
Microsoft Windows 8.1 Enterprise x649.412021.2.39.4 TS1M7Viya
Microsoft Windows 8.1 Pro 32-bit9.419.4 TS1M7
Microsoft Windows 8.1 Pro x649.412021.2.39.4 TS1M7Viya
Microsoft Windows 109.412021.2.39.4 TS1M7Viya
Microsoft Windows 119.419.4 TS1M7
Microsoft Windows Server 20089.419.4 TS1M7
Microsoft Windows Server 2008 R29.412021.2.39.4 TS1M7Viya
Microsoft Windows Server 2008 for x649.412021.2.39.4 TS1M7Viya
Microsoft Windows Server 2012 Datacenter9.412021.2.39.4 TS1M7Viya
Microsoft Windows Server 2012 R2 Datacenter9.412021.2.39.4 TS1M7Viya
Microsoft Windows Server 2012 R2 Std9.412021.2.39.4 TS1M7Viya
Microsoft Windows Server 2012 Std9.412021.2.39.4 TS1M7Viya
Microsoft Windows Server 20169.412021.2.39.4 TS1M7Viya
Microsoft Windows Server 20199.412021.2.39.4 TS1M7Viya
Microsoft Windows Server 20229.419.4 TS1M7
Windows 7 Enterprise 32 bit9.419.4 TS1M7
Windows 7 Enterprise x649.412021.2.39.4 TS1M7Viya
Windows 7 Home Premium 32 bit9.419.4 TS1M7
Windows 7 Home Premium x649.412021.2.39.4 TS1M7Viya
Windows 7 Professional 32 bit9.419.4 TS1M7
Windows 7 Professional x649.412021.2.39.4 TS1M7Viya
Windows 7 Ultimate 32 bit9.419.4 TS1M7
Windows 7 Ultimate x649.412021.2.39.4 TS1M7Viya
64-bit Enabled AIX9.412021.2.39.4 TS1M7Viya
64-bit Enabled Solaris9.412021.2.39.4 TS1M7Viya
HP-UX IPF9.412021.2.39.4 TS1M7Viya
Linux for x649.412021.2.39.4 TS1M7Viya
Solaris for x649.412021.2.39.4 TS1M7Viya
* 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.