Skip to main content
ANALYZE PROFILE analyzes a specific query profile on a per-fragment basis, and displays it in a tree structure. For more information about query profile, see Query Profile Overview. This feature is supported from v3.1 onwards.
CAUTION By default, no privilege is required to perform this operation. If the FE configuration item authorization_enable_query_profile_access_check is set to true, a user can analyze only the profiles of the queries they ran, and analyzing the profile of a query run by another user requires the SYSTEM-level OPERATE privilege.

Syntax

Parameters

Examples

Example 1: Querying the Query Profile without specifying node ID. img Example 2: Querying the Query Profile and specifying node ID as 0. The database returns all detailed metrics for Node ID 0 and highlights metrics with high usage for easier problem identification. img

Relevant SQLs