The Performance Schema table described here is available as of MySQL 8.0.24.
rpd_query_stats table stores query
compilation and execution statistics produced by the HeatWave
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.
rpd_query_stats table has these columns:
The query ID.
Query execution log.
Logical query execution plan.
Physical query execution plan.
prepartdata, which can be queried to determine if a
GROUP BYquery used data placement partitions. See Section 2.15, “Metadata Queries”.