LAST_QUERY_ID (Lakehouse v2)
Returns the ID of the most recently executed query.
Analyze Syntax
Section titled “Analyze Syntax”func.last_query_id()Analyze Examples
Section titled “Analyze Examples”func.last_query_id()
┌───────────────┐│ 'abc-123-def' │└───────────────┘SQL Syntax
Section titled “SQL Syntax”LAST_QUERY_ID()SQL Examples
Section titled “SQL Examples”SELECT LAST_QUERY_ID();
┌─────────────────┐│ abc-123-def-456 │└─────────────────┘