SESSION_USER
Descriptionβ
Get the current username and IP of Doris connection, compatible with MySQL protocol.
Syntaxβ
SESSION_USER()
Return Valueβ
Returns the current username and IP Doris is connected to.
Format:<user_name>@<ip>
Examplesβ
select session_user();
+----------------------+
| session_user() |
+----------------------+
| 'root'@'10.244.2.10' |
+----------------------+