* Update in-functions.md and tuple-functions.md
Изменил регистр в названиях разделов.
* Update tuple-functions.md and in-functions.md
Убрал описание операторов из in-functions.md.
Co-authored-by: Dmitriy <sevirov@yandex-team.ru>
* Update partition.md
Обновил подразделы DETACH PARTITION и DROP PARTITION.
* Update partition.md
Сделал изменения в русской версии.
Co-authored-by: Dmitriy <sevirov@yandex-team.ru>
* Create tuple-functions.md
Выполнил описание функции untuple на английском языке.
* Update tuple-functions.md
Подкорректировал описание.
* Update tuple-functions.md
Подкорректировал описание.
* Update tuple-functions.md
Внес небольшие поправки.
* Translate untuple-functions.md
Выполнил перевод на русский язык.
* Update tuple-functions.md
Внес поправки в английскую и русскую версии.
* Update tuple-functions.md
Внес поправки.
* Update tuple-functions.md and in-functions.md
Добавил функции и ссылки.
Co-authored-by: Dmitriy <sevirov@yandex-team.ru>
Function to count number of substring occurrences in the string:
- in case of needle is multi char - counts non-intersecting substrings
- the code is based on position helpers.
The following new functions is available:
- countSubstrings()
- countSubstringsCaseInsensitive()
- countSubstringsCaseInsensitiveUTF8()
v0: substringCount()
v2:
- add substringCountCaseInsensitiveUTF8
- improve tests
- fix coding style issues
- fix multichar needle
v3: rename to countSubstrings (by analogy with countEqual())
* Create replicated_fetches.md
Задокументировал системную таблицу system.replicated_fetches.
* Edit and translate replicated_fetches.md
Поправил английскую версию и перевел на русский язык.
* Update replicated_fetches.md
Внес поправки.
* Update replicated_fetches.md
Внес изменения в русскую версию.
Co-authored-by: Dmitriy <sevirov@yandex-team.ru>
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.