6.4.6 The rpd_query_stats Table

Note

The Performance Schema table described here is available as of MySQL 8.0.24. HeatWave AutoML queries are shown as of MySQL 8.0.31.

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 RAPID or, as of MySQL 8.0.31, 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.15, “Metadata Queries”.

  • STATEMENT_ID

    The global query ID.