Skip to main content
Version: Latest-4.1

host_name

Obtains the hostname of the node on which the computation is performed.

Syntax​

host_name();

Parameters​

None

Return value​

Returns a VARCHAR value.

Examples​

select host_name();
+-------------+
| host_name() |
+-------------+
| sandbox-sql |
+-------------+
1 row in set (0.01 sec)
Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.