mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
529f75c8b4
- rename unquoteUrl to decodeURLComponent - fix code-style
19 lines
918 B
SQL
19 lines
918 B
SQL
SELECT protocol('http://example.com') AS Scheme;
|
|
SELECT protocol('https://example.com/') AS Scheme;
|
|
SELECT protocol('svn+ssh://example.com?q=hello%20world') AS Scheme;
|
|
SELECT protocol('ftp!://example.com/') AS Scheme;
|
|
SELECT protocol('http://127.0.0.1:443/') AS Scheme;
|
|
|
|
SELECT domain('http://paul@www.example.com:80/') AS Host;
|
|
SELECT domain('http:/paul/example/com') AS Host;
|
|
SELECT domain('http://www.example.com?q=4') AS Host;
|
|
SELECT domain('http://127.0.0.1:443/') AS Host;
|
|
SELECT domainWithoutWWW('http://paul@www.example.com:80/') AS Host;
|
|
|
|
SELECT topLevelDomain('http://paul@www.example.com:80/') AS Domain;
|
|
SELECT topLevelDomain('http://127.0.0.1:443/') AS Domain;
|
|
SELECT topLevelDomain('svn+ssh://example.ru?q=hello%20world') AS Domain;
|
|
SELECT topLevelDomain('svn+ssh://example.ru.?q=hello%20world') AS Domain;
|
|
|
|
SELECT decodeURLComponent(pathFull('http://127.0.0.1/?query=hello%20world+foo%2Bbar')) AS Path;
|