v.20.5Improvement

Added hostname Alias to hostName Function

Added hostname as an alias to function hostName. This feature was suggested by Victor Tarnavskiy from Yandex.Metrica. #11821 (alexey-milovidov).
Added hostname as an alias for the existing function hostName in ClickHouse.

Why it matters

This feature provides a more intuitive and convenient function name, hostname, for retrieving the host's name, improving usability and aligning with common naming conventions.

How to use it

Use the function hostname() anywhere in your SQL queries as a direct replacement or alternative to hostName(). For example:

SELECT hostname()
FROM system.one