7.3.7 The rpd_query_stats Table

The rpd_query_stats table stores query compilation and execution statistics produced by the HeatWave plugin in JSON format. One row of data is stored for each query. The table stores data for the last 1000 executed queries. Data is stored for successfully processed queries and failed queries.

For HeatWave AutoML routines that include multiple sub-queries, such as ML_TRAIN, a new record is used for each query.

The rpd_query_stats table has these columns:

  • CONNECTION_ID

    The ID of the connection.

  • QUERY_ID

    The query ID. The counter auto-increments for each HeatWave MySQL and HeatWave AutoML query.

  • QUERY_TEXT

    The RAPID engine query or HeatWave AutoML query run by the user.

  • QEXEC_TEXT

    Query execution log. For HeatWave AutoML, this contains the arguments the user passed to the HeatWave AutoML routine call.

  • QKRN_TEXT

    Logical query execution plan. This field is not used for HeatWave AutoML queries.

  • QEP_TEXT

    Physical query execution plan. This field is not used for HeatWave AutoML queries.

    Includes prepart data, which can be queried to determine if a JOIN or GROUP BY query used data placement partitions. See Section 2.16, “Metadata Queries”.

  • STATEMENT_ID

    The global query ID.