Skip to content

Returns the query profile for a specified query ID. Useful for performance analysis and debugging.

func.get_query_profile('query_id')
func.get_query_profile('abc-123')
┌──────────────────────┐
│ (query profile text) │
└──────────────────────┘
GET_QUERY_PROFILE(<query_id>)
SELECT GET_QUERY_PROFILE(LAST_QUERY_ID());
┌──────────────────────────┐
│ (detailed query profile) │
└──────────────────────────┘