Robert Schulze
dce0b78198
Merge pull request #42778 from FArthur-cmd/annoy_cosine
...
Add cosine distance for annoy
2022-11-28 09:53:17 +01:00
Vladimir C
ff5bb69584
Merge branch 'master' into zvonand-decdiv
2022-11-25 17:05:22 +01:00
zvonand
d42a29ac0f
fix ubsan + expand docs
2022-11-24 01:23:59 +03:00
zvonand
faef0699b6
fix issues
2022-11-22 17:30:44 +03:00
Nikolay Degterinsky
e7e21adf17
Merge pull request #43207 from freedomDR/improve_unhex
...
unhex support FixedString arguments
2022-11-18 03:09:58 +01:00
Nikita Taranov
11b535d443
impl ( #43283 )
2022-11-17 11:17:27 +01:00
Maksim Kita
64b2a4d1bf
Merge pull request #43110 from bigo-sg/function_factorial
...
Add function factorial
2022-11-16 12:49:47 +03:00
李扬
d9adf2f02d
fix doc
2022-11-16 09:34:04 +08:00
Dan Roscigno
b178a3711c
Merge branch 'master' into standardize-dictionary-categories
2022-11-15 16:18:18 -05:00
Christoph Wurm
2a9ab046dd
Unify spelling of DateTime
2022-11-15 11:51:14 +00:00
freedomDR
37c448c6be
complete unhex doc
2022-11-15 12:33:14 +08:00
Dan Roscigno
b5a306c4db
Merge branch 'master' into standardize-dictionary-categories
2022-11-14 21:30:05 -05:00
taiyang-li
7178d80c51
Merge branch 'function_factorial' of https://github.com/bigo-sg/ClickHouse into function_factorial
2022-11-15 09:46:44 +08:00
taiyang-li
5eba20e119
modify return type from Int64 to UInt64
2022-11-15 09:46:24 +08:00
李扬
10449247fd
Merge branch 'master' into function_factorial
2022-11-15 09:34:43 +08:00
李扬
1de5bb2392
Add function canonicalRand ( #43124 )
...
* add function canonicalRand
* add perf test
* revert rand.xml
2022-11-15 00:27:19 +01:00
李扬
ef45889ecb
Add function pmod which return non-negative result based on modulo ( #42755 )
...
* add function positive_modulo
* add ducument
* fix type deduction of positive_modulo
* add function positive_modulo
* add ducument
* fix type deduction of positive_modulo
* add notice
* fix typo
* fix typo
* fix bug
* fix ub error
* fix ub error
2022-11-15 00:15:58 +01:00
Roman Vasin
ee0baa679b
Merge branch 'master' of github.com:ClickHouse/ClickHouse into ADQM-623
2022-11-14 09:45:32 +00:00
李扬
bf88816da4
Merge branch 'master' into function_factorial
2022-11-14 10:30:41 +08:00
FArthur-cmd
5eebc27d24
improve test
2022-11-12 09:23:49 +00:00
taiyang-li
f58e960a7d
update as request
2022-11-10 21:07:44 +08:00
Roman Vasin
753895026f
Improve docs and add more queries to 02477_age test
2022-11-10 12:18:29 +00:00
Roman Vasin
31d84d5aed
Add doc for age() function
2022-11-10 12:05:53 +00:00
taiyang-li
839de0cd09
add function factorial
2022-11-10 16:03:11 +08:00
zvonand
90e3aed957
Merge branch 'master' of github.com:ClickHouse/ClickHouse into zvonand-decdiv
2022-11-09 15:05:31 +03:00
李扬
1728f1e436
Merge branch 'master' into enable_max_splits
2022-11-08 10:15:42 +08:00
DanRoscigno
34f90ff6ef
update pages that refer to dictionaries
2022-11-07 09:26:50 -05:00
李扬
70fd664dd1
Merge branch 'master' into ascii_function
2022-11-07 10:30:10 +08:00
Nikolay Degterinsky
fbf891d375
Merge pull request #42774 from alexon1234/add_format_redable_decimal_size
...
Published formatReadableDecimalSize so it can be used as function
2022-11-05 12:34:20 +03:00
Dan Roscigno
fb43aa3db9
Merge pull request #42939 from DanRoscigno/add-vis-to-cell-towers
...
Add vis to cell towers
2022-11-04 15:47:13 -04:00
Nikolay Degterinsky
16fc05b734
Merge branch 'master' into add_format_redable_decimal_size
2022-11-04 15:02:01 +03:00
Robert Schulze
6df8f7ef25
Merge pull request #42907 from ClickHouse/cleanup-regexpreplace
...
Cleanup implementation of regexpReplace(All|One)
2022-11-04 12:49:44 +01:00
李扬
fccf6c037f
Merge branch 'master' into ascii_function
2022-11-03 22:48:55 -05:00
李扬
e65b0f1c2e
Merge branch 'master' into enable_max_splits
2022-11-03 22:47:15 -05:00
Kruglov Pavel
b124875257
Merge branch 'master' into improve-streaming-engines
2022-11-03 13:22:06 +01:00
taiyang-li
0df7e95845
improve doc and uts
2022-11-03 16:12:19 +08:00
Alejandro
62ab271b82
fix docs
2022-11-03 09:04:22 +01:00
Alejandro
4e3f43650a
Added function to docs
2022-11-03 09:04:22 +01:00
taiyang-li
5fa0968bd5
reset to original solution
2022-11-03 15:05:23 +08:00
taiyang-li
6770723027
modify as requested
2022-11-03 12:02:31 +08:00
taiyang-li
aeea21e4d7
Merge branch 'master' into ascii_function
2022-11-03 11:13:20 +08:00
Robert Schulze
494d6ca3df
Cleanup implementation of regexpReplace(All|One)
...
This is a pure refactoring, there are no semantic changes.
Cherry-picked from #42682 .
2022-11-02 15:49:53 +00:00
ltrk2
14141c9071
Add support for FixedString input to base64 functions
2022-11-02 08:14:28 -04:00
Dan Roscigno
8d7d1cf682
Merge branch 'ClickHouse:master' into add-vis-to-cell-towers
2022-11-02 07:58:15 -04:00
zvonand
3c46673534
upd docs
2022-11-01 16:40:26 +03:00
zvonand
83fb05e5ca
Merge branch 'master' of github.com:ClickHouse/ClickHouse into zvonand-decdiv
2022-11-01 09:03:29 +03:00
Roman Vasin
24a4f4afe7
Merge branch 'master' into ADQM-605
2022-10-30 18:03:07 +03:00
Dan Roscigno
bb15156b1f
Merge branch 'ClickHouse:master' into add-vis-to-cell-towers
2022-10-28 15:58:30 -04:00
Filatenkov Artur
21c024b043
Merge branch 'master' into annoy_cosine
2022-10-28 20:15:53 +03:00
FArthur-cmd
f187d4e1d4
add cosine distance for annoy and fix docs for cosineDistance
2022-10-28 17:03:35 +00:00
avogar
8e13d1f1ec
Improve and refactor Kafka/StorageMQ/NATS and data formats
2022-10-28 16:41:10 +00:00
DanRoscigno
1ec10ade5b
add link to geo fn, fix index
2022-10-28 09:56:16 -04:00
Roman Vasin
fc16752844
Update docs for FROM_UNIXTIME
2022-10-28 12:56:52 +00:00
taiyang-li
2254bef74a
implement function ascii
2022-10-26 14:19:26 +08:00
ltrk2
2c902bbc65
Implement support for different UUID binary formats ( #42108 )
...
* Implement support for different UUID binary formats
* Declare error codes that the implementation uses
* Make single-argument constructor explicit
* Modernize parts of the solution
* Make improvements based on review comments
* Declare an error code being used
2022-10-25 21:57:50 +02:00
Robert Schulze
b746224217
Merge pull request #42554 from arenadata/ADQM-604
...
Add support of Date32 arguments for dateName function
2022-10-22 17:20:10 +02:00
Alexey Milovidov
bc6762d613
Merge pull request #42565 from alexeyerm/other-functions.md-fix
...
other-functions.md example fix
2022-10-22 04:20:23 +02:00
Alexey Milovidov
592fbb3eaf
Merge pull request #42367 from ClickHouse/revert-40217
...
Revert #40217
2022-10-21 21:56:15 +02:00
alexeyerm
9abfe76fbb
doc fix fix
2022-10-21 20:08:44 +03:00
alexeyerm
95943dbdda
fix transform() example
2022-10-21 19:44:35 +03:00
Roman Vasin
537f7000d6
Update documentation
2022-10-21 06:55:24 +00:00
zvonand
890b292c88
added docs
2022-10-19 13:55:24 +03:00
Alexey Milovidov
d1f0c80ffe
Revert "Merge pull request #40217 from zvonand/zvonand-minmax"
...
This reverts commit df934d8762
, reversing
changes made to d3a7945b1b
.
2022-10-17 04:57:15 +02:00
Kruglov Pavel
7980920bd7
Merge branch 'master' into fix-format-row
2022-10-14 20:49:21 +02:00
Roman Vasin
90f9bd24a3
Update documentation
2022-10-14 08:02:38 +00:00
Duc Canh Le
fbb9b3f5ab
Merge branch 'master' into ch_canh_fix_decrypt_with_null
2022-10-03 17:56:06 +08:00
Robert Schulze
8e727d4fbc
Merge pull request #41910 from arenadata/ADQM-583
...
Improve enable_extended_results_for_datetime_functions option to return results of type DateTime64
2022-10-02 20:46:51 +02:00
Alexey Milovidov
0d1d177013
Merge pull request #41131 from JackyWoo/add_function_java_int_hash
...
Support Java integers hashing in `javaHash`
2022-10-02 18:10:51 +03:00
Duc Canh Le
99bf356220
Merge branch 'master' into ch_canh_fix_decrypt_with_null
2022-10-02 14:35:42 +08:00
Roman Vasin
f716fc2fe5
Put list of functions in correct order in docs; Use new formatting in exception messages.
2022-09-30 07:54:35 +00:00
Roman Vasin
45414b251d
Merge branch 'master' of github.com:ClickHouse/ClickHouse into ADQM-583
2022-09-29 17:02:49 +00:00
Roman Vasin
9dfb2d058c
Add DateTime64 returing functions in Note box
2022-09-29 14:23:50 +00:00
Robert Schulze
6381631836
Merge pull request #41824 from ClickHouse/tryBase58
...
Add function tryBase58Decode()
2022-09-29 12:38:58 +02:00
avogar
c353928eb5
Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-format-row
2022-09-28 13:15:51 +00:00
Duc Canh Le
6fd234d652
fix document typo and format
2022-09-28 20:06:18 +08:00
Robert Schulze
82139fad0e
Docs: Remove obsolete modelEvaluate() mention
2022-09-28 11:47:16 +00:00
Duc Canh Le
170ca26435
add document
2022-09-28 17:55:20 +08:00
Alexey Milovidov
683b7e5e95
Merge branch 'master' into add_function_java_int_hash
2022-09-28 01:30:26 +03:00
Robert Schulze
33891c275e
Fix typo
2022-09-27 10:20:39 +00:00
Robert Schulze
aa7e62ad5f
Add functio ntryBase58Decode()
...
- makes it consistent with tryBase64Decode(), follow-up to #39292
- additionally the following minor changes:
- rename Common/base58.h|cpp to Common/Base58.h|cpp for constency with
Common/Base64.h|cpp
- check that (encode|decode|tryDecode)Base64() gets just one argument
2022-09-27 10:18:36 +00:00
Kruglov Pavel
57f0dc1f89
Merge branch 'master' into fix-format-row
2022-09-19 14:37:58 +02:00
Robert Schulze
38aecc15a2
Merge pull request #41214 from arenadata/ADQM-528-B
...
Add enable_extended_results_for_datetime_functions option to return results of type Date32
2022-09-17 19:25:11 +02:00
Robert Schulze
b32b02d844
Merge pull request #40897 from ClickHouse/catboost-bridge-resurrected
...
Move CatBoost evaluation into clickhouse-library-bridge
2022-09-16 13:12:09 +02:00
Roman Vasin
d82cd7b007
Add many cosmetic changes to C++ code and MD docs
2022-09-16 09:37:30 +00:00
Roman Vasin
5c242de43a
Merge branch 'master' of github.com:ClickHouse/ClickHouse into ADQM-528-B
2022-09-15 13:47:51 +00:00
Roman Vasin
3ce66eab83
Correct all needed MD files
2022-09-15 13:28:11 +00:00
JackyWoo
afcbf3a853
Merge branch 'master' into add_function_java_int_hash
2022-09-15 10:08:26 +08:00
JackyWoo
05516bfd03
fix docs
2022-09-15 10:07:39 +08:00
Denny Crane
69d90de9a3
Update date-time-functions.md
2022-09-14 15:23:59 -03:00
Denny Crane
cbdbe1077a
Update date-time-functions.md
2022-09-14 12:16:32 -03:00
JackyWoo
e3caa6f096
some fixes
2022-09-13 21:21:35 +08:00
avogar
6d5f9e5554
Proper implementation for rowFormat function, delete rowFormatNoNewLine function
2022-09-09 17:42:33 +00:00
Denny Crane
132727d212
Doc. Fix links.
2022-09-08 14:37:42 -03:00
Robert Schulze
60f9f6855d
feat: implement catboost in library-bridge
...
This commit moves the catboost model evaluation out of the server
process into the library-bridge binary. This serves two goals: On the
one hand, crashes / memory corruptions of the catboost library no longer
affect the server. On the other hand, we can forbid loading dynamic
libraries in the server (catboost was the last consumer of this
functionality), thus improving security.
SQL syntax:
SELECT
catboostEvaluate('/path/to/model.bin', FEAT_1, ..., FEAT_N) > 0 AS prediction,
ACTION AS target
FROM amazon_train
LIMIT 10
Required configuration:
<catboost_lib_path>/path/to/libcatboostmodel.so</catboost_lib_path>
*** Implementation Details ***
The internal protocol between the server and the library-bridge is
simple:
- HTTP GET on path "/extdict_ping":
A ping, used during the handshake to check if the library-bridge runs.
- HTTP POST on path "extdict_request"
(1) Send a "catboost_GetTreeCount" request from the server to the
bridge, containing a library path (e.g /home/user/libcatboost.so) and
a model path (e.g. /home/user/model.bin). Rirst, this unloads the
catboost library handler associated to the model path (if it was
loaded), then loads the catboost library handler associated to the
model path, then executes GetTreeCount() on the library handler and
finally sends the result back to the server. Step (1) is called once
by the server from FunctionCatBoostEvaluate::getReturnTypeImpl(). The
library path handler is unloaded in the beginning because it contains
state which may no longer be valid if the user runs
catboost("/path/to/model.bin", ...) more than once and if "model.bin"
was updated in between.
(2) Send "catboost_Evaluate" from the server to the bridge, containing
the model path and the features to run the interference on. Step (2)
is called multiple times (once per chunk) by the server from function
FunctionCatBoostEvaluate::executeImpl(). The library handler for the
given model path is expected to be already loaded by Step (1).
Fixes #27870
2022-09-08 09:01:32 +00:00
Denny Crane
a75eb5ad84
Update date-time-functions.md
2022-09-07 15:59:23 -03:00
Denny Crane
0071ef9e38
Update date-time-functions.md
2022-09-07 15:56:31 -03:00
Kruglov Pavel
582216a3ca
Merge pull request #39919 from pzhdfy/UniqSketch
...
UniqThetaSketch support set operation such as union/intersect/not
2022-09-05 13:42:14 +02:00
Alexey Milovidov
1963baa11e
Merge pull request #40964 from ClickHouse/fix-docs-formatting
...
Fix formatting of notes box in documentation
2022-09-04 03:39:39 +03:00
Denny Crane
dd19b0856e
Doc. mapApply, mapFilter, mapUpdate ( #40961 )
...
* Update tuple-map-functions.md
* Update tuple-map-functions.md
2022-09-04 00:43:39 +02:00
Robert Schulze
385427ade8
Fix formatting of notes box in documentation
...
Follow-up to PR #38435
2022-09-03 17:25:14 +00:00