ODBC Driver for Spark SQL

Build 24.0.9060

Batch Processing

The CData ODBC Driver for Spark SQL offers bulk load support in Spark SQL through the ODBC Batch API. The driver can execute related SQL data manipulation statements simultaneously by translating them into a single bulk API request. In your application's code, the driver executes statements based on an array of inputs and a parameterized query.

Batch Update Procedure

Complete the following steps to execute a batch update:

  1. Define arrays of column values for each parameter in the statement.
  2. Set the SQL_ATTR_PARAMSET_SIZE statement attribute.
  3. Bind each array to each parameter.
  4. Execute the parameterized statement.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060