ClickHouse/docs/en/sql-reference
Azat Khuzhin 48645eae33 Add cutToFirstSignificantSubdomainWithWWW()
Sometimes it is odd to get TLD itself from the
cutToFirstSignificantSubdomain() (since you will not get TLD itself if
you pass it directly):
- cutToFirstSignificantSubdomain('org')            -> ""
- cutToFirstSignificantSubdomain('www.org')        -> org
- cutToFirstSignificantSubdomain('kernel.org')     -> kernel.org
- cutToFirstSignificantSubdomain('www.kernel.org') -> kernel.org

So add one more function to get www.org in this case:
- cutToFirstSignificantSubdomainWithWWW('org')            -> ""
- cutToFirstSignificantSubdomainWithWWW('www.org')        -> www.org
- cutToFirstSignificantSubdomainWithWWW('kernel.org')     -> kernel.org
- cutToFirstSignificantSubdomainWithWWW('www.kernel.org') -> kernel.org

P.S. not sure about the naming though, so it will great if someone has
suggestion for the name.
2020-11-18 21:09:27 +03:00
..
aggregate-functions Remove timeSeriesGroupRateSum from docs 2020-11-11 18:35:48 +01:00
data-types DateTime comparison with date string literal 2020-11-09 11:29:08 +03:00
dictionaries DOCSUP-3123: Edited the ReplicatedMergeTree and Polygon dictionaries (#16110) 2020-11-08 22:42:28 +03:00
functions Add cutToFirstSignificantSubdomainWithWWW() 2020-11-18 21:09:27 +03:00
operators Update index.md 2020-11-04 01:46:52 +03:00
statements DOCSUP-2869: Document section user_directories in the main config (#16340) 2020-11-13 16:08:38 +03:00
table-functions DOCSUP-3043: Document the null function (ru) (#16795) 2020-11-10 17:54:53 +03:00
ansi.md Fix broken links in docs 2020-10-13 20:23:29 +03:00
distributed-ddl.md [docs] split various kinds of CREATE queries into separate articles (#12328) 2020-07-09 18:10:35 +03:00
index.md [docs] split the ALTER article (#12502) 2020-07-15 00:02:41 +03:00
syntax.md DOCSUP-2869: Document section user_directories in the main config (#16340) 2020-11-13 16:08:38 +03:00