Commit Graph

627 Commits

Author SHA1 Message Date
BayoNet
e2bceb4b01 CLICKHOUSEDOCS-443: Fixes in translation and markup. 2019-10-30 15:46:22 +03:00
sundy-li
7292748012 fix docs 2019-10-30 10:06:30 +08:00
liu-bov
7b3e34a79a docs(repeat): Added repeat function description 2019-10-29 12:39:29 +03:00
sundy-li
66ffec32f7 improve range to support start,step args 2019-10-29 14:33:03 +08:00
sundy-li
3f1651fa29 improve range 2019-10-29 11:03:47 +08:00
memo
3449e8d107 fix 2019-10-29 10:27:54 +08:00
Alexander Kuzmenkov
6e2af3db41
Merge pull request #7480 from azat/crc-v3
Add CRC32IEEE()/CRC64() support
2019-10-28 16:16:37 +03:00
sundy-li
538b77c123 functions: add char function as mysql behavior 2019-10-28 10:44:56 +08:00
hcz
01d384e6bd Add docs 2019-10-26 21:38:05 +08:00
Sergei Bocharov
7db76a50f1 Fixes 2019-10-25 17:15:35 +03:00
Azat Khuzhin
2d2e738085 Add CRC32IEEE()/CRC64() support
zlib's implementation uses CRC-32-IEEE 802.3 polynomial (0xedb88320) but
with starting value 0xffffffff, so introduce another crc32
implementation - CRC32IEEE that has starting value - 0

Also add CRC64 with ECMA polynomial.

v2: s/crc*_data./crc*_data./ to avoid conflicts with other crc32.h in contrib
v3: join with existing CRC32()
2019-10-25 15:52:41 +03:00
filimonov
cbecfd2432
Fixing 'note' markdown 2019-10-25 13:04:07 +02:00
filimonov
3e9e258693
remove some obsolete notes about mutations 2019-10-25 11:37:22 +02:00
Mikhail f. Shiryaev
3d2eab7535 Add PARTITION ID to OPTIMIZE documentation 2019-10-24 09:49:58 +02:00
BayoNet
04a6c6ac4d
Docs links fix (#7448)
* Typo fix.

* Links fix.

* Fixed links in docs.

* More fixes.

* Link fixes.

* Fixed links.
2019-10-23 13:51:06 +03:00
Alexander Kuzmenkov
5ac672bfdf
Merge pull request #7273 from azat/uniqCombined-fix-docs
[RFC] Drop note about "estimation error for large sets will be large"
2019-10-23 13:49:04 +03:00
memo
645bcdacae add docs and simplify the code 2019-10-22 10:23:07 +08:00
Vitaly Baranov
f611fd4dfa
Merge pull request #7293 from Vdimir/feature/isvalidjson-5910
Add function isValidJSON
2019-10-21 21:24:18 +03:00
Aleksey Akulovich
a019e45093 fix typos in docs and comment (#7385) 2019-10-20 12:43:54 +08:00
VDimir
f1630b4e2e Merge branch 'master' into feature/isvalidjson-5910 2019-10-19 06:21:21 +00:00
hcz
502672c973 Add aggregate function combinators: -OrNull & -OrDefault (#7331) 2019-10-18 12:25:39 +03:00
BayoNet
6e87eb9fd7 DOCAPI-8163: EN review, RU translation. 2019-10-17 16:47:19 +03:00
Nikolai Kochetov
dfe297b93f
Merge pull request #6570 from godfreyd/godfreyd-clickhouse-catboost
Docs(solutions): applying a CatBoost model in ClickHouse
2019-10-16 17:24:11 +03:00
alexey-milovidov
1b8cb59e4b
Merge pull request #7286 from azat/docs-agg_functions-notes-fixes
Fix notes syntax in documentation
2019-10-14 20:12:53 +03:00
FeehanG
436e87a8ed
Update parametric_functions.md 2019-10-14 14:03:23 +03:00
Sergei Bocharov
4331a1614f Fixes after review 2019-10-14 13:34:27 +03:00
Danila Kutenin
61a97add8d Some docs 2019-10-13 15:35:43 +02:00
Danila Kutenin
57f20ba17e All multi{Fuzzy}MatchAllIndices functions 2019-10-13 15:22:09 +02:00
alexey-milovidov
4dffc67434
Merge pull request #7291 from sundy-li/FQDN
Function FQDN, fullHostName
2019-10-12 20:02:22 +03:00
VDimir
9a9a234410 Add doc for isValidJSON 2019-10-12 12:00:46 +00:00
sundy-li
4e48992397 fullHostName by function getFQDNOrHostName 2019-10-12 17:21:30 +08:00
sundy-li
59d2989826 Function FQDN,fullHostName 2019-10-12 15:17:30 +08:00
Zhichang Yu
679db35ed3 Fixed #7109 groupBitmapOr(31) segfault 2019-10-12 10:36:52 +08:00
Azat Khuzhin
b0e131a46f docs: fix notes syntax (triple !) 2019-10-11 23:21:59 +03:00
Azat Khuzhin
c2fa7ffcd3 Drop note about "estimation error for large sets will be large"
Since error is not that large, especially for uniqCombined64():

rows     error     uniqCombined64()/rows
- 1e7    0.00219   (1.0021969)
- 1e8    0.00096   (0.99903523)
- 2e8    0.50200   (1.005022735)
- 1e9    0.99944   (0.999435738)
- 1e10   0.01399   (0.9998568925)
- 1e11   0.09800   (1.00097891658)
- 1e12   0.29800   (0.997024870685)
- 1e13   0.62200   (1.0062169910992)
- 1e14   0.06200   (1.00062143604171)
2019-10-10 02:03:14 +03:00
alexey-milovidov
689411abe0
Merge pull request #7222 from azat/uniqCombined64
[RFC] Introduce uniqCombined64() to get sane results for cardinality > UINT_MAX
2019-10-09 20:29:56 +03:00
alexey-milovidov
6d31c3e730
Update reference.md 2019-10-09 20:28:15 +03:00
alexey-milovidov
4c1f0177b6
Merge pull request #7109 from infinivision/aggBitmapAnd
added groupBitmapAnd, groupBitmapOr, groupBitmapXor
2019-10-08 22:51:46 +03:00
Azat Khuzhin
f46c5a47c0 Introduce uniqCombined64() to get sane results for cardinality > UINT_MAX
By default uniqCombined() uses 32-bit hash for all types except String,
so this means that you cannot use uniqCombined() with i.e UInt64 and
cardinality > UINT_MAX, although you can use uniqCombined(toString())
and this will lead to 64-bit hash, but will not have good performance.

So uniqCombined64() had been introduced to fix this.

Requires: #7213
2019-10-08 21:59:35 +03:00
Ivan Blinkov
15deedb420
[docs] fix some title case 2019-10-07 20:00:21 +03:00
Sergei Bocharov
da0e9a1106 Fixes 2019-10-04 10:24:41 +03:00
Elena Baskakova
9d2f9c3d7f docs(currentUser): fix description 2019-10-04 10:20:17 +03:00
Denis Zhuravlev
b8a1164d05
Update array_functions.md
Fix array functions descriptions.
2019-09-30 20:03:09 -03:00
Denis Zhuravlev
c224ae0afd
Update array_functions.md
Fix array functions descriptions.
2019-09-30 19:26:30 -03:00
alexey-milovidov
cbd2f1d8cd
Merge pull request #7112 from godfreyd/godfreyd-startswith
Docs(startsWith): Fix startsWith function
2019-09-30 14:59:39 +03:00
alexey-milovidov
42c9ea9aa3
Merge pull request #7092 from PerformanceVision/acl_file_storage
Let the choice to write credential for HTTP source on external dictionaries
2019-09-30 13:20:33 +03:00
Sergei Bocharov
b641c7e163 Fix replicate function description 2019-09-30 12:18:43 +03:00
Sergei Bocharov
8a579ee3a6 Fixes after review 2019-09-30 10:24:02 +03:00
BayoNet
fa31743ace
DOCAPI-8259: EN review, RU translation. toInt, toUint docs refactoring and update (#7043)
* Typo fix.

* Update type_conversion_functions.md (#48)

* DOCAPI-8259: RU translation

* DOCAPI-8259: EN. Numeric conversion issues.

* DOCAPI-8259: Clarification.
2019-09-28 17:55:50 +03:00
Denis Zhuravlev
e97571d521
Update array_functions.md
fix arrayDistinct description
2019-09-27 15:05:11 -03:00
BayoNet
a04756d0dd
DOCAPI-8799: Updated SHOW TABLE dscr. Restructured TOC (#7128)
* Typo fix.

* Links fix.

* Fixed links in docs.

* More fixes.

* Link fixes.

* DOCAPI-8799: Updated SHOW TABLES. Restructured TOC.

* DOCAPI-8799: Fix.

* DOCAPI-8799: Links fix.
2019-09-27 18:44:36 +03:00
Zhichang Yu
8945714c27 added groupBitmapAnd, groupBitmapOr, groupBitmapXor 2019-09-27 10:21:07 +08:00
Sergei Bocharov
a0e11264ee Fix startsWith function 2019-09-26 14:39:39 +03:00
BayoNet
df8cb4b619
DOCAPI-7413: EN revew, RU translation. T64 codec docs (#7021)
* Update create.md (#32)

* DOCAPI-7413: Fixes.

* DOCAPI-7413: Fixes.

* DOCAPI-7413: RU translation.
2019-09-26 11:51:48 +03:00
Guillaume Tassery
53b10d5b60 docs 2019-09-26 05:42:45 +02:00
Guillaume Tassery
6ac5054f81 Merge branch 'acl_file_storage' of github.com:PerformanceVision/ClickHouse into acl_file_storage 2019-09-26 05:36:06 +02:00
Guillaume Tassery
647568a6f6 cosmetic 2019-09-26 05:34:22 +02:00
Guillaume Tassery
f9660bbe47
Update external_dicts_dict_sources.md 2019-09-25 13:37:13 +02:00
Guillaume Tassery
367a0dcdb4 cosmetic 2019-09-25 11:46:48 +02:00
Guillaume Tassery
0267c65e27 Add documentation 2019-09-25 11:42:17 +02:00
Alexey Milovidov
ff07ffbbae Merge branch 'merging_redis' of https://github.com/CurtizJ/ClickHouse into CurtizJ-merging_redis 2019-09-25 02:27:05 +03:00
BayoNet
f5ba279a6d DOCAPI-8163: Update for EN docs for sequenceMatch and sequenceCount (#6952)
* Typo fix.

* Links fix.

* Fixed links in docs.

* More fixes.

* DOCAPI-8163: Docs for sequenceMatch and sequenceCount.
2019-09-25 02:19:14 +03:00
BayoNet
c3c3f3829e DOCAPI-7719: Columns matcher docs (#6831)
* Typo fix.

* DOCAPI-7719: Docs

* DOCAPI-7719: Text.

* DOCAPI-7719: Text.

* DOCAPI-7719: Update.

* DOCAPI-7719: Update.
2019-09-25 02:07:52 +03:00
Sergei Bocharov
4761436a52 Docs(hash_functions): fix xxHash32, xxHash64 (#6992)
* docs(hash_functions): fix xxHash32, xxHash64

* Fixes after review

* Fixes after review

* Update hash_functions.md

* Update hash_functions.md
2019-09-24 03:50:58 +03:00
BayoNet
f26fdc63a0 DOCAPI-7415: EN review, RU translation. Docs for the -Resample aggregate function combinator. (#7017)
* Update combinators.md (#39)

* DOCAPI-7415: RU translation

* DOCAPI-7415: fix.
2019-09-24 03:04:52 +03:00
BayoNet
5b38a7f441 DOCAPI-7438: EN review, RU translation. Update of quantileTiming docs (#7033)
* Typo fix.

* Update reference.md (#45)

* DOCAPI-7438: RU translation
2019-09-24 03:01:19 +03:00
BayoNet
3d20675529 DOCAPI-7460: EN review. RU translation. Histogram function description (#7034)
* Typo fix.

* Update parametric_functions.md (#42)

* DOCAPI-7460: RU translation.

* Update parametric_functions.md
2019-09-24 02:59:49 +03:00
BayoNet
317e57bbc0 DOCAPI-7984: EN review, RU translation. ASOF JOIN ON docs (#7035)
* Typo fix.

* Update select.md (#41)

* DOCAPI-7984: RU translation
2019-09-24 02:57:32 +03:00
BayoNet
2f580c2bbb DOCAPI-7745: EN review, RU translation for optimize_throw_if_noop docs (#7051)
* Typo fix.

* Update settings.md (#50)

* Update misc.md (#51)

* DOCAPI-7745: RU translation.

* DOCAPI-7745: Fixes.
2019-09-24 02:45:47 +03:00
dasmfm
ff9682cc32 Doc fix for SELECT ... FINAL (#6157)
* Update select.md

* Update select.md
2019-09-24 02:42:52 +03:00
BayoNet
b46e31d198 DOCAPI-7743: EN review, RU translation for CREATE TABLE AS table_function() docs (#7056)
* Typo fix.

* Links fix.

* Fixed links in docs.

* More fixes.

* Update index.md (#57)

* DOCAPI-7743: RU translation.

* Update select.md

* Update index.md
2019-09-24 02:32:02 +03:00
alexey-milovidov
108ea4a330
Merge pull request #6995 from godfreyd/godfrey-javahash-hivehash
Docs(hash_functions): fix javaHash & hiveHash functions
2019-09-24 02:27:49 +03:00
alexey-milovidov
834fe73bad
Update hash_functions.md 2019-09-24 02:27:24 +03:00
alexey-milovidov
56bd02cf3a
Merge pull request #7016 from ClickHouse/yet-another-minor-changes-and-docs-for-hdfs
Cleanup hdfs docs (instead of #6876 for  #5371)
2019-09-24 02:23:59 +03:00
Alexey Milovidov
8579c26efb Changed repository URL 2019-09-23 19:18:19 +03:00
BayoNet
2d2bc052e1
DOCAPI-8530: Code blocks markup fix (#7060)
* Typo fix.

* Links fix.

* Fixed links in docs.

* More fixes.

* docs/en: cleaning some files

* docs/en: cleaning data_types

* docs/en: cleaning database_engines

* docs/en: cleaning development

* docs/en: cleaning getting_started

* docs/en: cleaning interfaces

* docs/en: cleaning operations

* docs/en: cleaning query_lamguage

* docs/en: cleaning en

* docs/ru: cleaning data_types

* docs/ru: cleaning index

* docs/ru: cleaning database_engines

* docs/ru: cleaning development

* docs/ru: cleaning general

* docs/ru: cleaning getting_started

* docs/ru: cleaning interfaces

* docs/ru: cleaning operations

* docs/ru: cleaning query_language

* docs: cleaning interfaces/http

* Update docs/en/data_types/array.md

decorated ```

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/getting_started/example_datasets/nyc_taxi.md

fixed typo

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/getting_started/example_datasets/ontime.md

fixed typo

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/interfaces/formats.md

fixed error

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/operations/table_engines/custom_partitioning_key.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/operations/utils/clickhouse-local.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/query_language/dicts/external_dicts_dict_sources.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/operations/utils/clickhouse-local.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/query_language/functions/json_functions.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/query_language/functions/json_functions.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/query_language/functions/other_functions.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/query_language/functions/other_functions.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/query_language/functions/date_time_functions.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/operations/table_engines/jdbc.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* docs: fixed error

* docs: fixed error
2019-09-23 18:31:46 +03:00
Olga Khvostikova
a6296b2eb0
Merge branch 'master' into yet-another-minor-changes-and-docs-for-hdfs 2019-09-23 18:16:01 +03:00
stavrolia
433e97f9e2 minor changes 2019-09-23 18:12:43 +03:00
stavrolia
fbe3270dfb need to mention... 2019-09-23 17:50:33 +03:00
Sergei Bocharov
c051964fee fixes after review 2019-09-23 13:48:21 +03:00
Sergei Bocharov
052c1a562d Fixes 2019-09-23 13:10:59 +03:00
Sergei Bocharov
6a4a4b5674 Docs(hash_functions): fix javaHash & hiveHash functions 2019-09-23 13:10:59 +03:00
alexey-milovidov
0dc4b1793d
Merge pull request #7036 from infinivision/fix_bitmapMax_doc
fix bitmapMin and bitmapMax doc
2019-09-23 01:49:04 +03:00
alexey-milovidov
6fa234cea4
Merge pull request #6894 from azat-archive/hashed-dict-memory-usage-v2
[RFC] Add sparsehash support for hashed dictionary (to reduce memory usage)
2019-09-22 15:55:36 +03:00
Zhichang Yu
ab7ecd84a1 fix bitmapMin and bitmapMax doc 2019-09-21 23:34:44 +08:00
Azat Khuzhin
420089c301
Add new dictionary layout (sparse_hashed) that is more memory efficient
With this new layout, sparsehash will be used over default HashMap,
sparsehash is more memory efficient but it is also slower.

So in a nutshell:
- HashMap uses ~2x more memory then sparse_hash_map
- HashMap ~2-2.5x faster then sparse_hash_map
(tested on lots of input, and the most close to production was
dictionary with 600KK hashes and UInt16 as value)

TODO:
- fix allocated memory calculation
- getBufferSizeInBytes/getBufferSizeInCells interface
- benchmarks

v0: replace HashMap with google::sparse_hash_map
v2: use google::sparse_hash_map only when <sparse> isset to true
v3: replace attributes with different layout
v4: use ch hash over std::hash
2019-09-21 02:22:40 +03:00
stavrolia
7309e813bc cleanup hdfs docs 2019-09-20 14:26:00 +03:00
Zhichang Yu
0dc3866c36 added bitmapSubsetLimit 2019-09-19 10:15:36 +08:00
CurtizJ
79a08ef8ea Merge remote-tracking branch 'upstream/master' into merging_redis 2019-09-18 12:58:22 +03:00
Zhichang Yu
460ccb04a2 added bitmapMin and bitmapMax 2019-09-18 16:56:12 +08:00
BayoNet
2c3457dbfe
DOCAPI-7743: CREATE TABLE AS table_function() docs. (#6887)
* Typo fix.

* DOCAPI-7743: Update of docs around table functions.

* DOCAPI-7743: More changes

* DOCAPI-7743: more fixes.

* DOCAPI-7743: CREATE TABLE

* Update docs/en/query_language/table_functions/index.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>

* DOCAPI-7743: Fixes.
2019-09-12 17:14:19 +03:00
BayoNet
36c0179f54
Fix of links in docs (#6884)
* Typo fix.

* Links fix.
2019-09-10 14:07:05 +03:00
BayoNet
1bd75b1e74
DOCAPI-7745: optimize_throw_if_noop docs. (#6848)
* Typo fix.

* DOCAPI-7745: The first version.

* DOCAPI-7745: More text

* DOCAPI-7745: More text.

* Update docs/en/operations/settings/settings.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>

* Update docs/en/query_language/misc.md

Co-Authored-By: Ivan Blinkov <github@blinkov.ru>

* DOCAPI-7745: Fixes.
2019-09-10 11:06:22 +03:00
alexey-milovidov
892959033f
Merge pull request #6857 from den-crane/patch-9
Doc change. Added some system queries (1st attempt).
2019-09-10 02:41:11 +03:00
alexey-milovidov
87ec80089a
Update system.md 2019-09-10 02:40:41 +03:00
Denis Zhuravlev
8002b7d7a8
Update docs/en/query_language/system.md
Co-Authored-By: Ivan Blinkov <github@blinkov.ru>
2019-09-09 15:34:48 -03:00
Denis Zhuravlev
927a31f8e2
Update docs/en/query_language/system.md
Co-Authored-By: Ivan Blinkov <github@blinkov.ru>
2019-09-09 15:34:08 -03:00
Denis Zhuravlev
0c6d583a15 Doc change. less confusing description for pointInEllipses (#6790) 2019-09-09 20:51:58 +03:00
CurtizJ
3b3657ff1e Merge branch 'add-ext-dict-redis' of https://github.com/comunodi/ClickHouse into merging_redis 2019-09-09 13:51:50 +03:00
Alexander Mezhov
e25b906c7f
Fix formatting error 2019-09-09 11:18:01 +05:00