Commit Graph

299 Commits

Author SHA1 Message Date
alexey-milovidov
fc83bd1088
Merge branch 'master' into setting-date-time-output-format 2020-10-13 23:48:27 +03:00
Alexey Milovidov
da4e4c5cdb Merge branch 'master' into filipecaixeta-master 2020-10-13 23:44:48 +03:00
Alexey Milovidov
db4db42b65 Fix broken links in docs 2020-10-13 20:23:29 +03:00
damozhaeva
e1fcbe749c
Edit and translate to Russian. (#15462)
Co-authored-by: Daria Mozhaeva <dmozhaeva@yandex-team.ru>
2020-10-13 18:29:28 +03:00
Maksim Kita
adaae8a12c Added OutputFormat setting date_time_output_format 2020-10-13 13:59:43 +03:00
Alexey Milovidov
9ca9855f96 Merge branch 'master' into filipecaixeta-master 2020-10-10 20:52:34 +03:00
alexey-milovidov
705abef402
Merge pull request #15679 from adevyatova/annadevyatova-DOCSUP-2861-codec
DOCSUP-2861: Add ability to specify Default codec
2020-10-10 20:37:39 +03:00
alexey-milovidov
a35c855902
Update table.md 2020-10-10 20:37:15 +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
Azat Khuzhin
064f901ea8 Add ability to preallocate hashtables for hashed/sparsehashed dictionaries
preallocation can be used only when we know number of rows, and for this
we need:
- source clickhouse
- no filtering (i.e. lack of <where>), since filtering can filter
  too much rows and eventually it may allocate memory that will
  never be used.

For sparse_hash the difference is quite significant, preallocated
sparse_hash hashtable allocates ~33% faster (7.5 seconds vs 5 seconds
for insert, and the difference is more significant for higher number of
elements):

    $ ninja bench-sparse_hash-run
    [1/1] cd /src/ch/hashtable-bench/.cmake && ...ch/hashtable-bench/.cmake/bench-sparse_hash
    sparse_hash/insert: 7.574 <!--
    sparse_hash/find  : 2.14426
    sparse_hash/maxrss: 174MiB
    sparse_hash/time:   9710.51 msec (user+sys)

    $ time ninja bench-sparse_hash-preallocate-run
    [1/1] cd /src/ch/hashtable-bench/.cmake && ...-bench/.cmake/bench-sparse_hash-preallocate
    sparse_hash/insert: 5.0522 <!--
    sparse_hash/find  : 2.14024
    sparse_hash/maxrss: 174MiB
    sparse_hash/time:   7192.06 msec (user+sys)

P.S. the difference for sparse_hashed dictionary with 4e9 elements
(uint64, uint16) is ~18% (4975.905 vs 4103.569 sec)

v2: do not reallocate the dictionary from the progress callback
    Since this will access hashtable in parallel.
v3: drop PREALLOCATE() and do this only for source=clickhouse and empty
    <where>
2020-10-09 22:28:14 +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
alexey-milovidov
c00ca64655
Merge pull request #15603 from r1j1k/patch-4
Update decimal.md
2020-10-08 15:56:41 +03:00
alexey-milovidov
0b3fd629da
Merge pull request #15602 from r1j1k/patch-3
Update int-uint.md
2020-10-08 15:56:09 +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
Anna
064be8db54 Add desc for Default codec 2020-10-06 16:16:28 +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
r1j1k
f8fb9ccb7b
Update decimal.md
-decimal256s}
2020-10-05 08:42:21 +03:00
r1j1k
1e638d2a61
Update int-uint.md 2020-10-05 08:29:45 +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
alexey-milovidov
e464f40733
Merge pull request #14884 from damozhaeva/dmozhaeva-DOCSUP-2041-edit-and-translate
DOCSUP-2041:  Edit and translate to Russian
2020-09-20 19:47:26 +03:00
alexey-milovidov
b2e9d0f20f
Update maxmap.md 2020-09-20 19:45:57 +03:00
alexey-milovidov
757be58fca
Update maxmap.md 2020-09-20 19:45:43 +03:00
alexey-milovidov
9f5599858e
Merge pull request #14820 from vladimir-golovchenko/fix-sql-compatibility-doc
Fix SQL compatibility doc
2020-09-16 20:44:22 +03:00
Daria Mozhaeva
8dc3c9b239 Edit and translate. 2020-09-16 18:14:33 +04:00
alexey-milovidov
6828e9bbc7
Merge pull request #14851 from den-crane/patch-1
ext-dict-functions.md note that id_expr can be Tuple
2020-09-16 00:53:43 +03:00
alexey-milovidov
b8ae25c546
Merge pull request #14857 from vladimir-golovchenko/fix-connection-odbc-to-mssql-doc
Improved the description of connecting to MS SQL Server by ODBC.
2020-09-16 00:41:36 +03:00
Vladimir Golovchenko
21bc856d61 Improved the description of connecting to MS SQL Server by ODBC. 2020-09-15 11:26:57 -07: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
Vladimir Golovchenko
adbd240417 Added missed section S011 according to SQL:2011. 2020-09-14 12:45:51 -07:00
Vladimir Golovchenko
eb0c1714fe Extended section E081 according to SQL:2011. 2020-09-14 12:45:51 -07:00
Vladimir Golovchenko
14393a3329 Fixed the wrong version of SQL standard. 2020-09-14 12:45:09 -07: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
Anna
0a9f6b1805
DOCSUP-2193: Describe SHOW queries for RBAC (#14515)
* Documentation for #10387, upd syntax by issues #12311, #12312

* Update docs/ru/sql-reference/statements/show.md

Co-authored-by: Anna Devyatova <annadevyatova@yandex-team.ru>
Co-authored-by: BayoNet <da-daos@yandex.ru>
2020-09-08 10:35:24 +03:00
bharatnc
59edda2e94 add note in docs about codec for ALIAS column type 2020-08-31 00:47:22 -07:00
Amos Bird
078b14610d
ALTER MODIFY SAMPLE BY 2020-08-27 22:31:30 +08: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
e2721e95d8 Merge branch 'master' into hczhcz-patch-0819-2 2020-08-25 23:50:41 +03:00
Roman Bug
899f93356f
romanzhukov-DOCSUP-2192: Split ALTER to separate files (ru) (#13905)
* DOCSUP-2192: Split alter section to separete files.

* DOCSUP-2192: Test.

* DOCSUP-2192: Fixed cross links.

* DOCSUP-2192: Fix links.

* DOCSUP-2192: Fix links.

* DOCSUP-2192: Fix links.

* DOCSUP-2192: Added alter delete and alter update topics.

* DOCSUP-2192: Fix one layout mistake and update links.

* DOCSUP-2192: Added delete and update sections. Updated alter index.md

* DOCSUP-2192: Fix links.

Co-authored-by: romanzhukov <romanzhukov@yandex-team.ru>
2020-08-25 18:38:36 +03: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
Nikita Mikhaylov
e4fc48254a
Merge pull request #13818 from bharatnc/ncb/quantileExactLowHigh
add functions for quantileExactLow & quantileExactHigh
2020-08-24 23:51:30 +04:00
olgarev
97094a212a
DOCSUP-928: Doc groupArraySample function, updated and translated into Russian (#13979)
* Updated docs in English and docs in Russian.

* Updated docs in English and docs in Russian.

* Docs in Russian.

Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>
2020-08-24 12:43:13 +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
bharatnc
da7fbfd1c6 doc fix {#quantileexactHigh} -> {#quantileexacthigh} 2020-08-23 10:09:41 -07:00
bharatnc
6782f5de1d add documentation for quatileExactLow & quantileExactHigh 2020-08-23 10:09:41 -07:00
hcz
be2ffe07ee Add docs and tests 2020-08-19 16:07:51 +08:00
olgarev
7a8b1f064b
DOCSUP-928: Documented the groupArraySample function (#13791)
* En docs for groupArraySample function.

* Bug fixed.

* Update docs/en/sql-reference/aggregate-functions/reference/grouparraysample.md

Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>
Co-authored-by: Ivan Blinkov <github@blinkov.ru>
2020-08-17 11:00:24 +03: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
olgarev
6164e7373d
DOCSUP-791: Docs for optimize_read_in_order setting (#12611)
* Docs in English for optimize_read_in_order setting.

* Link misspelling fixed.

* Usage section moved to the ORDER BY topic.

* Link fixed.

* Update docs/en/sql-reference/statements/select/order-by.md

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

* Update docs/en/sql-reference/statements/select/order-by.md

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

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Update docs/en/sql-reference/statements/select/order-by.md

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

* Small fix in English and translation into Russian.

Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>
Co-authored-by: BayoNet <da-daos@yandex.ru>
Co-authored-by: Ivan Blinkov <github@blinkov.ru>
2020-08-10 16:33:39 +03:00
alexey-milovidov
7de9c2183a
Merge pull request #13517 from vladimir-golovchenko/fix-time-interval-for-create-alter-quota-queries
Fixed docs, document blocks and tests: added the missed types of interval (WEEK, MONTH, QUARTER, YEAR) to CREATE/ALTER QUOTA statements
2020-08-09 02:12:13 +03:00
vladimir golovchenko
84a8ad7da9 Fixed docs: added the missed types of interval (WEEK, MONTH, QUARTER, YEAR) to CREATE/ALTER QUOTA statements. 2020-08-08 01:16:56 -07:00
Alexander Millin
b7f08f447a
[docs] Fix system.md (#13332)
Co-authored-by: Alexander Millin <a.millin@city-mobil.ru>
2020-08-07 11:48:38 +03:00
alexey-milovidov
5df187783e
Fix data corruption @blinkov 2020-08-06 23:59:19 +03:00
Ivan Blinkov
4e08b60b5e
fix #13380 (#13381) 2020-08-05 16:06:31 +03:00
vdimir
32f26bcde7 Add start_pos argument for position to documentation, case insensitive tests 2020-08-02 13:29:10 +00:00
Alexey Milovidov
b7ec7be296 Update docs 2020-08-02 01:02:46 +03:00
Alexey Milovidov
2dc74a8a54 Update documentation 2020-08-02 00:47:10 +03:00
BayoNet
c1b71ab06e
DOCS-733: Fixed broken links in Russian version (#13106)
* CLICKHOUSEDOCS-733: Fixed some broken links. Updated introduction and TOC in aggregate functions.

* CLICKHOUSEDOCS-733: Fixed files endings.

* CLICKHOUSEDOCS-733: Returned the list of functions back to reference index.

Co-authored-by: Sergei Shtykov <bayonet@yandex-team.ru>
Co-authored-by: emironyuk <em@don.ru>
2020-07-30 15:49:19 +03:00
Ildus Kurbangaliev
fdf4fd337a
add mapAdd and mapSubtract functions (#11735) 2020-07-29 11:50:30 +03:00
olgarev
2aefe5fb77
DOCSUP-790: docs for mutations_sync setting (#12639)
* Docs in English.

* Fixed links bug.

* Update docs/en/sql-reference/statements/alter/delete.md

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

* Translated into Russian. Anchors in links syncronized with English text. One minor change in English text to unify two similar descriptions.

Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>
Co-authored-by: Ivan Blinkov <github@blinkov.ru>
2020-07-29 09:43:24 +03:00
olgarev
e2287959a8
DOCSUP-1585: Edit and sync geo functions (#12584)
* Geo functions - en/ru sync.

* Fixed bug with levels.

* Apply suggestions from code review

Co-authored-by: Ivan Blinkov <github@blinkov.ru>
Co-authored-by: BayoNet <da-daos@yandex.ru>

* Geo functions splitted into 3 files.

* Links fixed.

* Link fixed.

* Anchor fixed.

* Add into TOC.

* Temporarily removed anchors.

* Working on TOC.

* Links to original article.

* TOC and links in English and Russian.

* TOC in English, content in index.

* Link fixed.

* TOC in Russian, with content in index file.

* Added index file to geo functions

* fixed links in ru

Co-authored-by: Olga Revyakina <revolg@yandex-team.ru>
Co-authored-by: Ivan Blinkov <github@blinkov.ru>
Co-authored-by: BayoNet <da-daos@yandex.ru>
Co-authored-by: Sergei Shtykov <bayonet@yandex-team.ru>
2020-07-28 10:57:28 +03:00
alexey-milovidov
795c09fdbb
Merge pull request #12662 from ildus/simple_aggr_for_minmap_maxmap
Add minMap and maxMap support to SimpleAggregateFunction
2020-07-28 00:03:34 +03:00
Ivan Blinkov
0a2cd20570
Update detach.md 2020-07-23 23:02:54 +03:00
Ivan Blinkov
720cd5ca69
Update system.md 2020-07-23 23:02:47 +03:00
Ivan Blinkov
3ea7d8e5cd
Update describe-table.md 2020-07-23 23:02:18 +03:00
Ivan Blinkov
26b7ea0ad9
Update check-table.md 2020-07-23 23:01:28 +03:00
Ivan Blinkov
2fe8b8c65e
Update attach.md 2020-07-23 23:01:14 +03:00
Ivan Blinkov
9a8836a542
Update drop.md 2020-07-23 16:06:50 +03:00
Ivan Blinkov
6e77ef1052
Update exists.md 2020-07-23 16:06:24 +03:00
Ivan Blinkov
d89325fb19
Update kill.md 2020-07-23 16:06:02 +03:00