ClickHouse/tests/queries/0_stateless/02483_test_reverse_dns_resolution.sql
2023-01-29 10:18:21 -03:00

15 lines
413 B
SQL

-- { echoOn }
-- Expect dns.google on both queries
select reverseDNSQuery('8.8.8.8');
select reverseDNSQuery('2001:4860:4860::8888');
-- 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}