Auto Query Time Estimation provides the following data:
-
QUERY-ID
The query ID.
-
SESSION-ID
The session ID that issued the query.
-
QUERY-STRING
The query string.
EXPLAIN
, if specified, is not displayed in the query string. -
EXEC-RUNTIME
The query execution runtime in seconds. Runtime estimates are differentiated from actual runtimes by the appearance of the following text adjacent to the runtime:
(est.)
. Actual runtimes are shown for successfully executed queries. Runtime estimates are shown forEXPLAIN
queries, queries cancelled byCtrl+C
, and queries that fail with an out-of-memory error. -
COMMENT
Comments associated with the query. Comments may include:
Explain
: The query was run withEXPLAIN
.Operation was interrupted by the user
: The query was successfully offloaded to HeatWave but was interrupted by a Ctrl+C key combination.Out of memory error during query execution in RAPID
: The query was successfully offloaded to HeatWave but failed due to an out-of-memory error.
-
TOTAL-ESTIMATED
andEXEC-RUNTIME
The total number of queries with runtime estimates and total execution runtime (estimated).
-
TOTAL-EXECUTED
andEXEC-RUNTIME
The total number of successfully executed queries and total execution runtime (actual).
-
Retrieve detailed statistics using the query below
The query retrieves detailed statistics from the
heatwave_autopilot_report
table. For an example of the detailed statistics, see Section 2.7.6.1, “Run Auto Query Time Estimation”.
Auto Query Time Estimation data is available in machine
readable format for use in scripts. Auto Query Time
Estimation data is also available in JSON
format or SQL table format with queries to the
heatwave_autopilot_report
table. See
Section 2.7.9, “Autopilot Report Table”.