CURRENT_USER (Lakehouse v1)
Returns the user name and host name combination for the account that the server used to authenticate the current client. This account determines your access privileges. The return value is a string in the utf8 character set.
Analyze Syntax
Section titled “Analyze Syntax”func.current_user()Analyze Examples
Section titled “Analyze Examples”func.current_user()
┌─────────────────────┐│ func.current_user() │├─────────────────────┤│ 'root'@'%' │└─────────────────────┘SQL Syntax
Section titled “SQL Syntax”CURRENT_USER()SQL Examples
Section titled “SQL Examples”SELECT CURRENT_USER();
┌────────────────┐│ current_user() │├────────────────┤│ 'root'@'%' │└────────────────┘