Commit Graph

213 Commits

Author SHA1 Message Date
alexey-milovidov
a8a37b4249
Merge pull request #17703 from den-crane/patch-8
Doc. Some formatting fixed in date-time-functions
2020-12-11 01:50:12 +03:00
alexey-milovidov
35b549a0d4
Merge pull request #17704 from sevirov/sevirov-DOCSUP-4523-add_some_of_missed_cmath_functions
DOCSUP-4523: Add some of missed cmath functions
2020-12-10 01:45:41 +03:00
Azat Khuzhin
840a21d073 Add top_level_domains_path for easier overriding 2020-12-09 21:08:31 +03:00
Azat Khuzhin
916cbd6610 Add ability to use custom TLD list
v2: Add a note that top_level_domains_lists aren not applied w/o restart
v3: Remove ExtractFirstSignificantSubdomain{Default,Custom}Lookup.h headers
v4: TLDListsHolder: remove FIXME for dense_hash_map (this is not significant)
2020-12-09 21:08:22 +03:00
Daria Mozhaeva
d1c7833f28 Edit and translate. 2020-12-09 17:03:38 +03:00
Nikita Mikhaylov
767d1fc98b
Update date-time-functions.md 2020-12-08 18:32:55 +03:00
PHO
3c90065158 Add functions toMJD and fromMJD
These functions convert between Proleptic Gregorian calendar date and Modified Julian Day number.
2020-12-07 16:00:32 +03:00
Dmitriy
fadf764fef Update math-functions.md
Внес изменения в описание обратных гиперболических функций.
2020-12-06 12:55:09 +03:00
Dmitriy
79d68958cb Update math-functions.md
Выполнил перевод на русский язык.
2020-12-03 23:59:17 +03:00
Dmitriy
7a0fcaa869 Update math-functions.md
Выполнил описание некоторых математических функций.
2020-12-01 22:25:57 +03:00
Denny Crane
03a74e9d62
Update date-time-functions.md 2020-12-01 14:47:56 -04:00
Denny Crane
12f0a3feaf
Update date-time-functions.md 2020-12-01 14:45:00 -04:00
Azat Khuzhin
0004fd8ab9 Merge remote-tracking branch 'upstream/pr/16277' into countMatches-pull 2020-12-01 21:03:33 +03:00
Denny Crane
2e5c415035
Update date-time-functions.md 2020-11-30 22:19:26 -04:00
Denny Crane
667f3fcfde
toTimeZone 2020-11-30 22:07:16 -04:00
alexey-milovidov
00da5148a1
Merge pull request #17347 from azat/substringCount
Implement countSubstrings()
2020-11-29 14:32:33 +03:00
sevirov
cc2a287a89
DOCSUP-3922: Document the tuple functions (#17505)
* 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>
2020-11-28 14:38:57 +03:00
Denny Crane
c34b547e41
Update date-time-functions.md 2020-11-27 16:18:08 -04:00
Denny Crane
c31572c709
Update date-time-functions.md 2020-11-27 16:14:07 -04:00
sevirov
59b92c7464
DOCSUP-3922: Document the untuple() function (#17110)
* 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>
2020-11-27 22:37:44 +03:00
Azat Khuzhin
838596c7a4 Implement countSubstrings()
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())
2020-11-26 22:58:16 +03:00
alexey-milovidov
1cdb447b77
Update date-time-functions.md 2020-11-22 07:38:31 +03:00
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
gyuton
fcae0d0f0a
DOCSUP-3845: documented new encrypt and decrypt functions (#16930)
* Added first draft of description

* Added toc_priority

* Updated description

* Updated documentation

* Added examples

* Fixed links

* variable fixes

* minor fixes

* added translation

* fixed typos in translation

* changed toc_title in translation

* minor change

* added various fixes

* fixed typos

* Deleted unnecessary file

* Deleted extra files

Co-authored-by: George <gyuton@yandex-team.ru>
2020-11-17 17:05:33 +03:00
gyuton
4d602afd28
DOCSUP-3538: Documeted the tid and logTrace funtions (#16884)
* Added tid and logTrace functions description

* Added minor fixes

* Minor fixes and added ru translation

* Added links

Co-authored-by: George <gyuton@yandex-team.ru>
2020-11-17 13:03:39 +03:00
gyuton
f48232d615
DOCSUP-3535: Documented the reinterpretAsUUID function (updated) (#16688)
* Updated description

* Updated description

* Added translation

* Fixed links

* Fixed links 2

* Fixed mistakes in translation

* Improved description and added examples

* Minor fixes

Co-authored-by: George <gyuton@yandex-team.ru>
2020-11-12 19:23:32 +03:00
olgarev
b5ec4ab9d4
DOCSUP-2807: Documented the date_trunc function (#15429)
* Docs updated for date_trunc() and now().

* Minor fix.

* Minor fix in en. Translation to Russian.

* Minor link fixes.

* Apply suggestions from code review

Co-authored-by: BayoNet <da-daos@yandex.ru>

* Updates

* Minor fix

* Minor updates for now() (en, ru).

Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>
Co-authored-by: BayoNet <da-daos@yandex.ru>
2020-11-12 19:14:47 +03:00
Alain BERRIER
9dd0c7708e
fix: fix typo in array functions documentation 2020-11-05 16:23:23 +01:00
alexey-milovidov
5954b7ec8b
Merge pull request #16570 from JacobHayes/add-farmfingerprint64
Add farmFingerprint64 function
2020-11-05 13:36:59 +03:00
alexey-milovidov
4fede5b008
Merge pull request #16438 from azat/errorCode-v2
Add errorCodeToName() and system.errors
2020-11-04 12:40:47 +03:00
alexey-milovidov
4fb31f8782
Merge pull request #16647 from gyuton/gyuton-DOCSUP-3535-document_the_reinterpretAsUUID_function
DOCSUP-3535: Documented the reinterpretAsUUID function
2020-11-04 11:19:30 +03:00
alexey-milovidov
788418b447
Update type-conversion-functions.md 2020-11-04 11:19:17 +03:00
alexey-milovidov
96d66a480f
Update type-conversion-functions.md 2020-11-04 11:18:50 +03:00
alexey-milovidov
8a3f38f332
Merge branch 'master' into errorCode-v2 2020-11-04 01:40:41 +03:00
George
aad09fc6f4 Added reinterpretAsUUID description 2020-11-03 22:53:09 +03:00
Evgenia Sudarikova
2fae1c3c31
DOCSUP-3171: Document the formatRowNoNewline function (#16603)
* add description in English

* minor changes

* changes in EN and added RU version
2020-11-03 18:59:21 +03:00
Jacob Hayes
c9ad4e8d96 Add farmFingerprint64 docs 2020-10-31 09:04:18 -04:00
filimonov
f52d0919f0
Update date-time-functions.md 2020-10-30 10:31:05 +01:00
Azat Khuzhin
a81b0418ac Make errorCodeToName() return LowCardinality(String) 2020-10-29 10:55:41 +03:00
Azat Khuzhin
3fb8d08dd4 Add errorCodeToName() function
This patch adds errorCode() function that will return macro name by the
exception code, useful for analyzing query_log and similar.

Later some descriptions can be added.

v2: replace hana::map/fusion::vector with external script
v3:
- use binary cmake dir for .sh
- use jump table over suboptimal std::unordered_map (with very poor hash
  function for int -- std::hash)
- cleanup errorCodeToName (drop extra templates and headers)
- rename errorCode -> errorCodeToName
- fix arcadia build (by not providing those helpers there)
- fix build on CI, by using CMAKE_CXX_COMPILER for parsing the file
2020-10-29 10:55:00 +03:00
filimonov
2d28d97233
Update other-functions.md 2020-10-28 15:13:27 +01:00
Mikhail Filimonov
41971e073a
Fix typos reported by codespell 2020-10-27 12:04:03 +01:00
Anton Popov
5fbca7d62d
Merge pull request #16337 from kitaisreal/uuid-safe-cast-functions-added
UUID safe cast functions added
2020-10-26 16:03:27 +03:00
Anton Popov
bd17843bdb
Update uuid-functions.md 2020-10-26 16:00:49 +03:00
Roman Bug
9ec78855cd
DOCSUP-2806: Add meta header in RU (#15801)
* DOCSUP-2806: Add meta intro.

* DOCSUP-2806: Update meta intro.

* DOCSUP-2806: Fix meta.

* DOCSUP-2806: Add quotes for meta headers.

* DOCSUP-2806: Remove quotes from meta headers.

* DOCSUP-2806: Add meta headers.

* DOCSUP-2806: Fix quotes in meta headers.

* DOCSUP-2806: Update meta headers.

* DOCSUP-2806: Fix link to nowhere in EN.

* DOCSUP-2806: Fix link (settings to tune)

* DOCSUP-2806: Fix links.

* DOCSUP-2806:Fix links EN

* DOCSUP-2806: Fix build errors.

* DOCSUP-2806: Fix meta intro.

* DOCSUP-2806: Fix toc_priority in examples datasets TOC.

* DOCSUP-2806: Fix items order in toc.

* DOCSUP-2806: Fix order in toc.

* DOCSUP-2806: Fix toc order.

* DOCSUP-2806: Fix order in toc.

* DOCSUP-2806: Fix toc index in create

* DOCSUP-2806: Fix toc order in create.

Co-authored-by: romanzhukov <romanzhukov@yandex-team.ru>
Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
2020-10-26 13:29:30 +03:00
Maksim Kita
440ae2bc57 UUID safe cast functions added
1. Added readUUIDTextImpl, readUUIDText, tryReadUUIDText functions in
ReadHelpers.
2. Added toUUIDOrNull, toUUIDOrZero functions based on ReadHelpers read
implementations.
3. Updated documentation.
2020-10-25 11:45:29 +03:00
filipe
6a3ceba9a3 add countMatches sql function (issue #15413) 2020-10-23 01:28:25 -03:00
sevirov
e12f69cb59
DOCSUP-3478: Documented the iLike function (#15880)
* Description of the iLike function

Добавил описание функции iLike и добавил оператор ILIKE.

* Update string-search-functions.md

Changed by comments.

* Update and translation ilike function and ILIKE operator..

Внес поправки в английскую версию и сделал перевод на русский язык.

Co-authored-by: Dmitriy <sevirov@yandex-team.ru>
2020-10-19 18:32:09 +03:00
olgarev
cfda514e1f
Corrections to the cast_keep_nullable setting docs (en, ru). (#15991)
Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>
2020-10-15 20:34:48 +03:00
Anna
ac438bc5bd
DOCSUP-2965: Add translate for map functions (#15744)
* Add translate for map func

* Edit English text

* Made ru description match the template

* Fixed links, updated wording

* Fixed links

* Update
2020-10-15 17:53:11 +03:00
Alexey Milovidov
87fe8f2a00 Merge branch 'master' into filipecaixeta-master 2020-10-14 15:27:58 +03:00
AnaUvarova
b1cdcf2d31
DOCSUP-2018-formatDateTime_description_update: added two modificators into the table of supported modificators (#15614)
* Added two modificators into the table of supported modificators

* Clarified description of added modifiers and started to add info according to the template of function description

* fixed link

* fix link again

* edits

* Update docs/en/sql-reference/functions/date-time-functions.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* Update docs/en/sql-reference/functions/date-time-functions.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* Update docs/en/sql-reference/functions/date-time-functions.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* comments from ticket

* +

* +

* polishing

* Update docs/en/sql-reference/functions/date-time-functions.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* external link for understanding

* Перевод на русский

* Доработала русский перевод

* Причесала перевод

* Уточнение части перевода

* Шлифовка части перевода

Co-authored-by: BayoNet <da-daos@yandex.ru>
2020-10-14 14:33:23 +03:00
Alexey Milovidov
db4db42b65 Fix broken links in docs 2020-10-13 20:23:29 +03:00
Alexey Milovidov
9ca9855f96 Merge branch 'master' into filipecaixeta-master 2020-10-10 20:52:34 +03:00
Alexey Milovidov
ac4d394d12 Fix ugly links in docs 2020-10-10 10:50:37 +03:00
alexey-milovidov
59cfb87a96
Merge pull request #15799 from ClickHouse/fix-links-in-docs
Fix ugliness in docs
2020-10-10 10:48:11 +03:00
Alexey Milovidov
e0d6918d28 Fix ugliness in docs 2020-10-09 22:29:42 +03:00
alexey-milovidov
350e463892
Merge branch 'master' into patch-5 2020-10-08 16:14:22 +03:00
alexey-milovidov
7326343f31
Merge pull request #15522 from r1j1k/53r93y-DOCSUP-2866-allow_experimental_bigint_types
DOCSUP-2866: Document the allow_experimental_bigint_types setting
2020-10-08 16:06:42 +03:00
Anna
cc9dafcb30
DOCSUP-2614: Added description for isDecimalOverflow and countDigits function (#15109)
* Added description for isDecimalOverflow and countDigits function

* Update docs/en/sql-reference/data-types/decimal.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* Update docs/en/sql-reference/data-types/decimal.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* Update docs/en/sql-reference/data-types/decimal.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* Translated on russian

* Move to functions/other-functions.md

* Fixed errors

* Update docs/ru/sql-reference/functions/other-functions.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* Update docs/ru/sql-reference/functions/other-functions.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* Update docs/ru/sql-reference/functions/other-functions.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* Update docs/ru/sql-reference/functions/other-functions.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

* Update docs/ru/sql-reference/functions/other-functions.md

Co-authored-by: BayoNet <da-daos@yandex.ru>

Co-authored-by: BayoNet <da-daos@yandex.ru>
2020-10-07 21:13:01 +03:00
olgarev
dd939ce623
DOCSUP-1674: Docs for the extractAllGroupsHorizontal and extractAllGroupsVertical functions (English) (#14317)
* Docs for the extractAllGroupsHorizontal and extractAllGroupsVertical functions (English).

* Minor fixes (en).

* Misspelling fixed.

* English docs corrected and translated into Russian.

* English misspelling corrected.

Co-authored-by: Olga Revyakina <revolg@yandex.ru>
Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>
2020-10-06 14:17:19 +03:00
olgarev
a77d232411
DOCSUP-2407: Documented the bayesAB function (#15599)
* Docs for the bayesAB function, english.

* Note edited.

Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>
2020-10-05 16:06:16 +03:00
r1j1k
568235ddeb
Merge branch 'master' into 53r93y-DOCSUP-2866-allow_experimental_bigint_types 2020-10-05 09:35:45 +03:00
r1j1k
2b28fde87f
Update type-conversion-functions.md 2020-10-05 09:04:22 +03:00
filipe
146f973437 add maximum_unit arg to formatReadableTimeDelta function 2020-10-03 19:38:51 -03:00
alexey-milovidov
bbedd9b08f
Merge pull request #15308 from otrazhenia/evgsudarikova-DOCSUP-2402-formatrow
DOCSUP-2402: Document the formatRow function
2020-10-03 17:05:46 +03:00
alexey-milovidov
561f3613b2
Update type-conversion-functions.md 2020-10-03 17:04:47 +03:00
alexey-milovidov
fd24654ca4
Merge pull request #15324 from adevyatova/annadevyatova-DOCSUP-2615-normalizeQuery
DOCSUP-2615: normalizeQuery and normalizeQueryHash
2020-10-03 17:00:14 +03:00
alexey-milovidov
037d00a633
Merge branch 'master' into revolg-DOCSUP-2403-Document_the_mechanics_of_custom_settings_specifying 2020-10-03 16:57:20 +03:00
Artem Zuikov
ecdf0ed1a8
update en and ru docs: add 128/256 types (#15515) 2020-10-02 16:47:29 +03:00
Sergey Ryzhkov
0d5923d87c Update type-conversion-functions.md 2020-10-02 10:11:14 +03:00
Sergey Ryzhkov
ea9045da8d DOCSUP-2866: Document the allow_experimental_bigint_types setting 2020-10-02 08:09:44 +03:00
filipe
077ee81177 add an SQL function formatReadableTimeDelta to format time delta 2020-09-30 23:55:46 -03:00
feng lv
61d5f89235 update document 2020-09-30 10:57:04 +08:00
Anna
ac859470a3 Translate to Russian 2020-09-28 23:58:08 +03:00
Olga Revyakina
64a431ae8b Custom settings docs in english. 2020-09-28 05:59:01 +03:00
Evgeniia Sudarikova
a1bc246d53 edited after review 2020-09-27 21:08:17 +03:00
Anna
5f8d7fab17 Upd desc and move to string-functions.md 2020-09-26 10:07:16 +03:00
Anna
d52e1634a2 Add normalizedQuery normalizedQueryHash desc 2020-09-25 17:32:39 +03:00
Evgeniia Sudarikova
0e164a9ec7 add EN description 2020-09-25 16:34:35 +03:00
Ildus Kurbangaliev
59cc997d9c Fix documentation for map functions 2020-09-23 15:12:13 +02:00
alexey-milovidov
21eeebeb7a
Merge pull request #14772 from otrazhenia/evgsudarikova-DOCSUP-2039
DOCS-323: LowCardinality
2020-09-20 23:07:43 +03:00
Daria Mozhaeva
8dc3c9b239 Edit and translate. 2020-09-16 18:14:33 +04:00
Denis Zhuravlev
c4a90a9bc9
Update ext-dict-functions.md 2020-09-15 11:15:30 -03:00
Denis Zhuravlev
11fb255155
Update ext-dict-functions.md 2020-09-15 11:11:34 -03:00
Evgenia Sudarikova
99b220c3ed
Merge branch 'master' into evgsudarikova-DOCSUP-2039 2020-09-15 17:06:42 +03:00
Ildus Kurbangaliev
67b49862d9
Add mapPopulateSeries function (#13166) 2020-09-14 19:11:50 +03:00
Evgeniia Sudarikova
6ba9c107df add EN changes 2020-09-12 20:34:08 +03:00
Artem Hnilov
726277adec
Update other-functions.md 2020-09-10 20:34:23 +03:00
Simon Podlipsky
97616f2982
Mention db requirement in dictionary functions 2020-09-09 13:33:34 +02:00
olgarev
de9f1f4c94
DOCSUP-924: Higher-order functions moved to Array functions (#14092)
* Higher-order functions description moved to Array functions (English).

* Bad anchor fixed.

* Update docs/en/sql-reference/functions/array-functions.md

Co-authored-by: Ivan Blinkov <github@blinkov.ru>

* Higher-order functions description moved to Array functions (Russian).

* Update array-functions.md

Minor fixes in Russian text.

Co-authored-by: Olga Revyakina <revolg@yandex.ru>
Co-authored-by: Ivan Blinkov <github@blinkov.ru>
2020-09-08 18:55:00 +03:00
alexey-milovidov
0f706c01ca
Merge pull request #13888 from vladimir-golovchenko/add-date-trunc-function
Added date_trunc function
2020-08-27 02:12:27 +03:00
vladimir golovchenko
962dd04ec0 Added documentation for date_trunc function. 2020-08-25 16:41:23 -07:00
Alexey Milovidov
846cdd70fc Merge branch 'patch-0819' of https://github.com/hczhcz/ClickHouse into hczhcz-patch-0819-2 2020-08-24 23:01:59 +03:00
Anton Popov
93d49e5815
Merge pull request #13237 from vdimir/string-locate-startpos-3776
Support start_pos argument in `position` function
2020-08-24 12:23:19 +03:00
hcz
be2ffe07ee Add docs and tests 2020-08-19 16:07:51 +08:00
alexey-milovidov
d341ec8c3d
Fix misleading, bad and wrong documentation. 2020-08-12 02:23:11 +03:00
alexey-milovidov
2ee6f1484c
Fix bad documentation (progress: 1%) 2020-08-12 02:22:00 +03:00
vdimir
32f26bcde7 Add start_pos argument for position to documentation, case insensitive tests 2020-08-02 13:29:10 +00:00
Ildus Kurbangaliev
fdf4fd337a
add mapAdd and mapSubtract functions (#11735) 2020-07-29 11:50:30 +03:00