ClickHouse/tests/queries/0_stateless/00381_first_significant_subdomain.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

31 lines
1.4 KiB
SQL

SELECT
firstSignificantSubdomain('http://hello.canada.ca') AS canada,
firstSignificantSubdomain('http://hello.congo.com') AS congo,
firstSignificantSubdomain('http://pochemu.net-domena.ru') AS why;
SELECT
firstSignificantSubdomain('ftp://www.yandex.com.tr/news.html'),
firstSignificantSubdomain('https://www.yandex.ua/news.html'),
firstSignificantSubdomain('magnet:yandex.abc'),
firstSignificantSubdomain('ftp://www.yandex.co.uk/news.html'),
firstSignificantSubdomain('https://api.www3.static.dev.ввв.яндекс.рф'),
firstSignificantSubdomain('//www.yandex.com.tr/news.html');
SELECT
firstSignificantSubdomain('http://hello.canada.c'),
firstSignificantSubdomain('http://hello.canada.'),
firstSignificantSubdomain('http://hello.canada'),
firstSignificantSubdomain('http://hello.c'),
firstSignificantSubdomain('http://hello.'),
firstSignificantSubdomain('http://hello'),
firstSignificantSubdomain('http://'),
firstSignificantSubdomain('http:/'),
firstSignificantSubdomain('http:'),
firstSignificantSubdomain('http'),
firstSignificantSubdomain('h'),
firstSignificantSubdomain('.'),
firstSignificantSubdomain(''),
firstSignificantSubdomain('http://hello.canada..com'),
firstSignificantSubdomain('http://hello..canada.com'),
firstSignificantSubdomain('http://hello.canada.com.');