Back to Starrocks

host_name

docs/en/sql-reference/sql-functions/utility-functions/host_name.md

4.1.0345 B
Original Source

host_name

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

Syntax

Haskell
host_name();

Parameters

None

Return value

Returns a VARCHAR value.

Examples

Plaintext
select host_name();
+-------------+
| host_name() |
+-------------+
| sandbox-sql |
+-------------+
1 row in set (0.01 sec)