v.21.7Improvement
Fix topLevelDomain for IDN hosts to prevent returning empty strings
FixtopLevelDomainfor IDN hosts (i.e.example.рф), before it returns empty string for such hosts. #25103 (Azat Khuzhin).
Why it matters
Previously, thetopLevelDomain function failed to handle IDN hosts, resulting in empty strings for valid domains with international characters. This fix ensures accurate domain parsing and improves the function's reliability for globalized domain names, which is valuable for users dealing with international web data.How to use it
Users can use thetopLevelDomain function as usual in their queries. The fix is applied internally, so no changes in usage or configuration are needed. After upgrading ClickHouse to the version containing this fix, the function will return correct top-level domains for IDN hosts automatically.