Nikolai Kochetov
9a5a0a2a3b
Fix types for set elements.
2019-10-31 19:14:06 +03:00
Amos Bird
e04cdd4ebb
Early constant folding.
2019-10-31 23:54:32 +08:00
sundy-li
17212afabb
fix virtual call
2019-10-31 13:19:28 +08:00
sundy-li
d2a785f759
fix style
2019-10-31 12:59:50 +08:00
alexey-milovidov
194fd85f5c
Update arrayCompact.cpp
2019-10-31 00:29:15 +03:00
alexey-milovidov
1ec7cb3546
Update range.cpp
2019-10-30 23:39:29 +03:00
sundy-li
7292748012
fix docs
2019-10-30 10:06:30 +08:00
sundy-li
be9da37720
fix zero divide
2019-10-30 09:36:50 +08:00
sundy-li
6f2cce37d7
fix move
2019-10-29 19:22:00 +08:00
sundy-li
718fb99939
fix move
2019-10-29 19:20:35 +08:00
sundy-li
66ffec32f7
improve range to support start,step args
2019-10-29 14:33:03 +08:00
sundy-li
9eb77a59e3
fix index
2019-10-29 13:20:18 +08:00
sundy-li
a653f50432
remove logs
2019-10-29 13:01:45 +08:00
sundy-li
dbd3227e5a
fixup partial const column
2019-10-29 11:51:27 +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
memo
3064e716db
add line
2019-10-28 14:48:25 +08:00
memo
0f572e5d7d
add line
2019-10-28 12:51:59 +08:00
memo
90333ac9aa
modified getReturnType
2019-10-28 11:15:52 +08:00
sundy-li
538b77c123
functions: add char function as mysql behavior
2019-10-28 10:44:56 +08:00
Azat Khuzhin
04f1e6b2cc
Use crc32_z() over crc32(), since it size_t for length
2019-10-25 23:32:29 +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
hcz
3767cb76de
Improve style
2019-10-25 11:25:02 +08:00
Amos Bird
295864e6e0
better scalar query
2019-10-23 21:37:54 +08:00
hcz
d877ef6098
Merge remote-tracking branch 'hcz/patch-1018' into patch-1018
2019-10-22 11:31:23 +08:00
memo
645bcdacae
add docs and simplify the code
2019-10-22 10:23:07 +08:00
Vitaly Baranov
a0ca932035
Fix build and add comments.
2019-10-21 16:39:55 +03:00
millb
2a183c3d07
Merge branch 'master' into decimal_hex_function
2019-10-21 11:13:51 +03:00
hcz
79a27ece1a
Flip the condition column in arrayFill
2019-10-21 11:19:11 +08:00
philip.han
5e32bf1ae7
Removed unchecked type-casting
2019-10-19 21:42:08 +09:00
VDimir
797f76a187
Separate class for IsValidJSONImpl
2019-10-19 07:26:19 +00:00
VDimir
f1630b4e2e
Merge branch 'master' into feature/isvalidjson-5910
2019-10-19 06:21:21 +00:00
hcz
2be06255b1
Update arrayFill.cpp
2019-10-18 21:31:18 +08:00
hcz
124ea9699a
Add arrayFill
2019-10-18 16:45:39 +08:00
hcz
decd555317
Cleanup, keep function names consistent
2019-10-18 15:30:41 +08:00
philip.han
8aac4d04de
Fixed weird type-casting for IN-operator in bloom_filter
2019-10-17 19:53:41 +09:00
Amos Bird
89247deb64
Constness-aware JoinGet.
2019-10-17 08:52:28 +08:00
millb
19a54a59bb
Created: function hex for Decimal32, Decimal64, Decimal128
2019-10-16 18:28:10 +03:00
memo
947c345eda
style: Normalize the format
2019-10-16 14:05:43 +08:00
memo
d1fb238820
implement arrayCompact
2019-10-15 15:50:10 +08:00
alexey-milovidov
f0409348a1
Merge pull request #7294 from hczhcz/patch-1013
...
Add arraySplit
2019-10-14 12:32:09 +03:00
Danila Kutenin
60d273a65d
Get better message for non hyperscan supported platforms
2019-10-14 10:58:05 +02:00
Danila Kutenin
7527896f1a
Unused variables
2019-10-13 21:40:07 +02:00
Danila Kutenin
57f20ba17e
All multi{Fuzzy}MatchAllIndices functions
2019-10-13 15:22:09 +02:00
hcz
c8c40e159d
Add arraySplit
2019-10-13 16:06:57 +08:00
alexey-milovidov
4dffc67434
Merge pull request #7291 from sundy-li/FQDN
...
Function FQDN, fullHostName
2019-10-12 20:02:22 +03:00
alexey-milovidov
62c7c50aba
Update FunctionsJSON.h
2019-10-12 20:00:32 +03:00
VDimir
1174fc346b
Add isValidJSON function
2019-10-12 11:42:43 +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
Alexander Kuzmenkov
57b5592236
Work around garbage in roaring.h to fix Mac OS build.
2019-10-11 14:28:16 +03:00
Alexander Kuzmenkov
8a1d57bddb
Include PODArray.h into fewer files.
2019-10-11 14:28:16 +03:00
Alexander Kazakov
03c7b7ff8d
Prevent from using non-deterministic functions in mutations of replicated tables ( #7247 )
...
* Added isDeterministic() to IFunctionBuilder i-face
* A test for non-deterministic mutations
* In MutationsInterpreter::validate() ensure deterministic functions
* Adjusted nondeterministic mutation tests
* Moved around some code in MutationsInterpreter::validate()
* Dropped unnecessary check in findFirstNonDeterministicFuncName()
* Corrections to IFunction{Base,Builder} interface
2019-10-10 17:38:08 +03:00
Alexey Milovidov
9f8d562543
Add function "getMacro" #7239
2019-10-09 04:14:57 +03:00
Alexander Kuzmenkov
2b30f2696c
Include Field.h in less files.
2019-10-08 16:23:24 +03:00
alexey-milovidov
d096119529
Merge pull request #7156 from ClickHouse/fix-header-for-now
...
Fix header for function 'now'
2019-10-05 22:35:23 +03:00
proller
594c535bd4
Build fixes ( #7063 )
...
* Build fixes
* fix
* Fix
* fix
* Fix install(export..
* Freebsd fixes
* Freebsd fixes
* Fix warning
* fix
* More PRIVATE linking
* Fix review
* Timmy
* fix
* fix
2019-10-05 22:25:31 +03:00
tavplubix
d73db7f779
Merge pull request #6781 from ClickHouse/merging_values_with_expressions
...
Merging Values with expressions
2019-10-04 12:51:22 +03:00
Alexander Kuzmenkov
8e245d4e8c
Merge pull request #7135 from ClickHouse/aku/msan-field
...
Fix some MemorySanitizer warnings for Fields.
2019-10-03 10:33:44 +03:00
Alexander Tokmakov
80e5976d10
fixes after review
2019-10-02 20:51:00 +03:00
Nikolai Kochetov
58a432be62
Updated functions today, yestarday, randConstant.
2019-10-01 13:15:20 +03:00
Nikolai Kochetov
b9b2ca342d
Updated functions today, yestarday, randConstant.
2019-10-01 13:11:16 +03:00
Nikolai Kochetov
92ba6081a4
Updated functions today, yestarday, randConstant.
2019-10-01 13:10:07 +03:00
Nikolai Kochetov
0d94bdb6a1
Updated functions today, yestarday, randConstant.
2019-10-01 13:03:55 +03:00
Nikolai Kochetov
486deee1f1
Use new iface for now function. Use current time value from function builder.
2019-09-30 20:36:03 +03:00
Nikolai Kochetov
393bfdcd9f
Use new iface for now function. Use current time value from function builder.
2019-09-30 20:31:36 +03:00
Alexander Tokmakov
979f235e38
Merge branch 'master' into merging_values_with_expressions
2019-09-30 18:06:58 +03:00
Nikolai Kochetov
963acff1d2
Use new iface for now function. Use current time value from function builder.
2019-09-30 17:59:04 +03:00
Alexander Kuzmenkov
ec2d9a083c
Remove excessive includes.
2019-09-30 15:31:14 +03:00
alesapin
4fdb5a61e5
Rename ExternalDictionaries to ExternalDictionariesLoader
2019-09-26 13:41:33 +03:00
alesapin
5668f55ab7
Rename ExternalModels to ExternalModelsLoader
2019-09-26 13:23:14 +03:00
Alexander Kuzmenkov
f3bde19b74
Do not use iterators in find() and emplace() methods of hash tables.
...
Instead, these methods return a pointer to the required data as they are
stored inside the hash table. The caller uses overloaded functions to
get the key and "mapped" values from this pointer. Such an interface
avoids the need for constructing iterator-like wrapper objects, which is
especially important for compound hash tables such as the future
StringHashMap.
2019-09-24 17:44:35 +03:00
alexey-milovidov
2f195ddb03
Merge pull request #7028 from abyss7/issue-6459
...
Implement cross-compilation support Linux → Darwin
2019-09-24 02:20:17 +03:00
alexey-milovidov
a314a36feb
Merge pull request #7062 from ClickHouse/fix-msan-for-low-cardinality
...
Fix msan for LowCardinality
2019-09-24 02:11:15 +03:00
alexey-milovidov
c4c936c685
Merge pull request #7049 from ClickHouse/ucasFL-master
...
Merging function "repeat"
2019-09-23 22:52:38 +03:00
alexey-milovidov
e24d882326
Merge pull request #7024 from millb/master
...
Fixed Function Hex for Float32 and Float64
2019-09-23 22:52:19 +03:00
Nikolai Kochetov
630872837e
Skip null columns while checknig num rows.
2019-09-23 22:26:04 +03:00
millb
bd29efdbbe
New hex function release
...
Bugs and tests fixed
2019-09-23 18:47:34 +03:00
Ivan Lezhankin
ce2fb6d3d1
Fix build
2019-09-23 17:46:01 +03:00
Nikolai Kochetov
61b583ccb9
Fix size of constant columns in case of execution function over LowCardinality without allowed defaults.
2019-09-23 17:19:02 +03:00
Nikolai Kochetov
f15bc77778
Fix size of constant columns in case of execution function over LowCardinality without allowed defaults.
2019-09-23 16:36:20 +03:00
Ivan Lezhankin
4b143c3e0f
Merge remote-tracking branch 'upstream/master' into issue-6459
2019-09-23 16:07:19 +03:00
Alexey Milovidov
2585cde3d0
Added safety threshold
2019-09-23 02:49:15 +03:00
Alexey Milovidov
454b83fcd3
Merging function 'repeat'
2019-09-23 02:30:13 +03:00
Alexey Milovidov
52272eeea9
Merge branch 'master' of https://github.com/ucasFL/ClickHouse into ucasFL-master
2019-09-23 02:04:18 +03:00
alexey-milovidov
61b02598d7
Update repeat.cpp
2019-09-23 02:02:03 +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
fenglv
4465fdb8bf
Add test
...
fix
fix
fix
2019-09-22 14:25:43 +08:00
alexey-milovidov
67e02b4ea0
Merge pull request #6957 from infinivision/add_bitmapSubsetLimit
...
added bitmapSubsetLimit
2019-09-22 04:58:44 +03:00
Silviu Caragea
5a14d97587
Fix linking when __ELF__ is not defined
2019-09-22 01:04:17 +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
Alexander Tokmakov
0080639f79
Merge branch 'master' into merging_values_with_expressions
2019-09-20 23:26:01 +03:00
Ivan Lezhankin
9e46118edd
Merge remote-tracking branch 'upstream/master' into issue-6459
2019-09-20 21:25:55 +03:00
Ivan Lezhankin
967e00a8da
It works!
...
if compiled with:
CC=clang CXX=clang++ cmake -Wno-dev . -Bbuild -GNinja -DCMAKE_AR:FILEPATH=x86_64-apple-darwin-ar -DCMAKE_RANLIB:FILEPATH=x86_64-apple-darwin-ranlib -DCMAKE_SYSTEM_NAME=Darwin -DSDK_PATH=MacOSX10.14.sdk -DLINKER_NAME=x86_64-apple-darwin-ld -DUSE_SNAPPY=OFF -DENABLE_SSL=OFF -DENABLE_PROTOBUF=OFF -DENABLE_PARQUET=OFF -DENABLE_READLINE=OFF -DENABLE_ICU=OFF -DENABLE_FASTOPS=OFF
2019-09-20 20:09:22 +03:00
millb
88adbb72d9
Fixed Function Hex for Float32 and Float64
2019-09-20 19:21:05 +03:00
fenglv
2062bedaf0
Add repeat function
2019-09-20 00:46:41 +08:00
Zhichang Yu
0dc3866c36
added bitmapSubsetLimit
2019-09-19 10:15:36 +08:00
alexey-milovidov
01a1920e9b
Merge pull request #6970 from infinivision/add_bitmapMin_bitmapMax
...
added bitmapMin and bitmapMax
2019-09-19 02:01:16 +03:00