LAST_QUERY_ID (Lakehouse v1)
Retorna o ID da última consulta da sessão atual; o índice pode ser (-1, 1, 1+2)… Um índice fora do intervalo retorna uma string vazia.
Sintaxe no Analyze
Seção intitulada “Sintaxe no Analyze”func.last_query_id(<index>)Exemplos no Analyze
Seção intitulada “Exemplos no Analyze”func.last_query_id(-1)
┌──────────────────────────────────────┐│ func.last_query_id((- 1)) │├──────────────────────────────────────┤│ a6f615c6-5bad-4863-8558-afd01889448c │└──────────────────────────────────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”LAST_QUERY_ID(<index>)Exemplos de SQL
Seção intitulada “Exemplos de SQL”SELECT LAST_QUERY_ID(-1);
┌──────────────────────────────────────┐│ last_query_id((- 1)) │├──────────────────────────────────────┤│ a6f615c6-5bad-4863-8558-afd01889448c │└──────────────────────────────────────┘