mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-06 14:32:22 +00:00
15 lines
443 B
Plaintext
15 lines
443 B
Plaintext
-- { echoOn }
|
|
-- Expect dns.google on both queries
|
|
select reverseDNSQuery('8.8.8.8');
|
|
['dns.google']
|
|
select reverseDNSQuery('2001:4860:4860::8888');
|
|
['dns.google']
|
|
-- Expect empty response
|
|
select reverseDNSQuery('');
|
|
[]
|
|
-- Expect error, invalid column type
|
|
select reverseDNSQuery(1); -- {serverError 36}
|
|
-- Expect error, wrong number of arguments
|
|
select reverseDNSQuery(); -- {serverError 42}
|
|
select reverseDNSQuery(1, 2); -- {serverError 42}
|