GET_QUERY_PROFILE (Lakehouse v2)
Returns the query profile for a specified query ID. Useful for performance analysis and debugging.
Analyze Syntax
Section titled “Analyze Syntax”func.get_query_profile('query_id')Analyze Examples
Section titled “Analyze Examples”func.get_query_profile('abc-123')
┌──────────────────────┐│ (query profile text) │└──────────────────────┘SQL Syntax
Section titled “SQL Syntax”GET_QUERY_PROFILE(<query_id>)SQL Examples
Section titled “SQL Examples”SELECT GET_QUERY_PROFILE(LAST_QUERY_ID());
┌──────────────────────────┐│ (detailed query profile) │└──────────────────────────┘