The following prerequisites apply for offloading queries to HeatWave:
The query must be a
SELECT
statement.INSERT ... SELECT
andCREATE TABLE ... SELECT
statements are supported, but only theSELECT
portion of the statement is offloaded to HeatWave. See Section 2.3.8, “CREATE TABLE ... SELECT Statements”, and Section 2.3.9, “INSERT ... SELECT Statements”.All tables accessed by the query must be defined with
RAPID
as the secondary engine. See Section 2.2.2.2, “Defining the Secondary Engine”.All tables accessed by the query must be loaded in HeatWave. See Section 2.2, “Loading Data to HeatWave MySQL”.
-
autocommit
must be enabled. Ifautocommit
is disabled, queries are not offloaded and execution is performed on the MySQL DB System. To check theautocommit
setting:mysql> SHOW VARIABLES LIKE 'autocommit'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | autocommit | ON | +---------------+-------+
Queries must only use supported functions and operators. See Section 2.12, “Supported Functions and Operators”.
Queries must avoid known limitations. See Section 2.18, “HeatWave MySQL Limitations”.
If any prerequisite is not satisfied, the query is not offloaded and falls back to the MySQL DB System for processing by default.