CURRENT_ROLE (Lakehouse v2)
Retorna a função ativa atual.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.current_role()Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.current_role()
┌─────────┐│ 'admin' │└─────────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”CURRENT_ROLE()Exemplos de SQL
Seção intitulada “Exemplos de SQL”SELECT CURRENT_ROLE();
┌───────┐│ admin │└───────┘