Commit Graph

2510 Commits

Author SHA1 Message Date
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
Vasily Nemkov
38e2897b49 Casting DateTime64 to DateTime64 of different scale or to/from Date/DateTime 2019-10-26 09:22:55 +03: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
Vasily Nemkov
17263bc7b1 Better reporting of unmatching function argument types. 2019-10-24 13:49:00 +03:00
Vasily Nemkov
d6ff36c760 Merge remote-tracking branch 'upstream/master' into DateTime64 2019-10-24 07:52:50 +03:00
Amos Bird
295864e6e0
better scalar query 2019-10-23 21:37:54 +08:00
Vasily Nemkov
1a0011853e Fixed toWeek, toYearWeek, toStartOfWeek with DateTime64 2019-10-23 15:27:36 +03:00
stavrolia
22e960dbff Move initialisation of constants 2019-10-23 13:55:44 +03:00
Vasily Nemkov
f8170e8973 Reverted modifications of now.cpp 2019-10-22 18:37:43 +03:00
Vasily Nemkov
06255a9b9f DateTime64 toStartOfInterval fix 2019-10-22 10:43:14 +03: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
stavrolia
40688294b0 another attempt to fix clang warning 2019-10-21 01:56:22 +03: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
stavrolia
1397a90324 Fix test and clang warning 2019-10-18 18:03:15 +03: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
stavrolia
688ec20de1 Fix style from clang warnings 2019-10-17 09:28:26 +03:00
Amos Bird
89247deb64 Constness-aware JoinGet. 2019-10-17 08:52:28 +08:00
stavrolia
65efaf7ac7 Delete macros 2019-10-16 22:52:35 +03:00
stavrolia
fdad33fcd0 Fix style 2019-10-16 20:43:44 +03:00
stavrolia
ae2f5ad7d2 Speedup 2019-10-16 20:25:46 +03:00
millb
19a54a59bb Created: function hex for Decimal32, Decimal64, Decimal128 2019-10-16 18:28:10 +03:00
Vasily Nemkov
6280ea086f Enabled toDateTime64 2019-10-16 10:26:28 +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
Vasily Nemkov
9f9fcb1add Simplified argument type validation for conversion functions. 2019-10-14 16:28:52 +03: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
Vasily Nemkov
db166af95a Moved DataTypeDateTime64 and now64() to separate source files. 2019-10-14 11:38:03 +03: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
Vasily Nemkov
8648ebf75c Initial implementation of DateTime64 parsing functions; 2019-10-12 10:03:38 +03: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
Vasily Nemkov
a6b20e8ca3 Minor simplification on FunctionDateOrDateTimeAddInterval::TransformResultDataType and FunctionDateOrDateTimeAddInterval::resolveReturnType 2019-10-10 20:05:29 +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
Vasily Nemkov
fb4dbf94e9 Simplified customizing add/substract-Interval functions for DateTime64 2019-10-10 16:49:40 +03:00
Vasily Nemkov
7afff3d661 Style fixes 2019-10-09 23:02:50 +03:00
Vasily Nemkov
c1f9fcc3d5 Fixed getting function default timezone value from DateTime64-argument 2019-10-09 22:53:57 +03:00
Vasily Nemkov
3e3de2adf8 add/substract-XXX family of functions now can take DateTime64 as argument 2019-10-09 22:52:59 +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
Vasily Nemkov
1a84580005 Scaffold for toDateTime64(scale, [timezone]) 2019-10-08 07:59:38 +03:00
Vasily Nemkov
77ac67eba8 Fixed toTimeZone implementation 2019-10-08 07:50:13 +03:00
Vasily Nemkov
46e5171952 Fixed comparing values of DateTime64 to DateTime and Int/UInt 2019-10-07 18:19:18 +03:00
Vasily Nemkov
46174e92b3 attempt to fix toTimeZone. 2019-10-07 10:45:59 +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
Vasily Nemkov
f6a997d1e1 Minor: using UInt32 DateTime64-related scale instead of UInt64. 2019-10-04 17:05:39 +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
Vasily Nemkov
bda2179dc3 Fixed now64() to be variadic 2019-10-03 11:10:52 +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
Vasily Nemkov
180b986972 Extern templates + minor simplifications 2019-10-03 10:27:28 +03:00
Vasily Nemkov
655ec351ba Fixed DateTime64 creation, and optional scale parameter for now64()
Added more tests for casting and inserting values.
2019-10-03 05:07:36 +03:00
Alexander Tokmakov
80e5976d10 fixes after review 2019-10-02 20:51:00 +03:00
Vasily Nemkov
31d5730513 Merge remote-tracking branch 'upstream/master' into DateTime64 2019-10-02 13:54:59 +03:00
Vasily Nemkov
6e813002d5 Proper serialization of DateTime64 also updated functions support. 2019-10-02 08:53:38 +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
Vasily Nemkov
9cc2baf05c DataType64 as decimal
compiles
2019-09-26 18:12:40 +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
Artem Zuikov
aae82eed5a
Merge pull request #6940 from 4ertus2/mjoin
PartialMergeJoin
2019-09-18 16:16:10 +03:00
Zhichang Yu
460ccb04a2 added bitmapMin and bitmapMax 2019-09-18 16:56:12 +08:00
Vitaly Baranov
0fb234c63e
Merge branch 'master' into dict_allow_databases 2019-09-15 01:51:44 +03:00
Alexander Kuzmenkov
f4da0399c0 Some MemorySanitizer fixes. 2019-09-13 14:49:29 +03:00
Guillaume Tassery
bb088fbf65 Write dictionary permission on user instead of dictionary configuration 2019-09-13 10:22:34 +02:00
proller
0d6612d424 CLICKHOUSE-4652 Simpler 2019-09-12 22:52:24 +03:00
proller
8ce32897fa CLICKHOUSE-4652 Another fix for АrrayEnumerateUniqRanked with empty arrays 2019-09-12 22:38:34 +03:00
Alexander Tokmakov
f323476111 Merge branch 'master' into merging_values_with_expressions 2019-09-11 23:31:37 +03:00
Guillaume Tassery
5f1621faa2 Add database right for dictionaries 2019-09-11 13:14:55 +02:00
Amos Bird
bf799fef92 Build fix 2019-09-11 10:53:56 +08:00
Amos Bird
a1310ffbe6 Split libdbms.so using object library
Now the linking time of incremental builds are around 1-2 seconds
2019-09-11 01:56:01 +08:00
chertus
1b313eedfa MergeJoin in progress 2019-09-09 22:43:37 +03:00
Vasily Nemkov
1b0410cee7 Merge commit '50928323ebabe0663e26601c3929ee94b9a5127d' into DateTime64 2019-09-09 16:18:22 +03:00
Denis Zhuravlev
50c32490be
Update arrayElement.cpp
Typo in error message ( is -> are )
2019-09-05 19:41:27 -03:00
Alexander Tokmakov
8936f854be better checking of types of literals 2019-09-04 19:54:20 +03:00
Zhichang Yu
cfac445144 fix bitmapSubsetInRange memory leak 2019-09-04 22:05:32 +08:00
alexey-milovidov
4f7d472cb7
Merge pull request #6048 from Akazz/ternary-logic-light
Correct implementation of ternary logic for AND/OR
2019-09-03 22:09:56 +03:00
alexey-milovidov
845a612b95
Merge pull request #6773 from infinivision/fix_issue_6575
fix DataTypeAggregateFunction deserialization
2019-09-03 21:19:41 +03:00
Zhichang Yu
fd0947899d fix 00980_shard_aggregation_state_deserialization.sql 2019-09-03 23:47:09 +08:00
Alexander Tokmakov
b9eb992320 Merge branch 'master' into merging_values_with_expressions 2019-09-02 19:54:56 +03:00
proller
184e2ef9ab CLICKHOUSE-4644 arrayEnumerateUniqRanked: fix for empty arrays 2019-09-02 18:49:25 +03:00
Alexander Tokmakov
46effbd7f6 Template for functions with constant arguments 2019-09-02 17:33:10 +03:00
Alexander Kuzmenkov
ab2bd54022 Remove a redundant condition (found by PVS-Studio). 2019-09-02 16:17:14 +03:00
Zhichang Yu
9e587fb139 fix DataTypeAggregateFunction deserialization 2019-09-02 20:09:40 +08:00
Alexey Milovidov
dcc6163d32 Added function "trap" 2019-09-01 00:39:17 +03:00
Alexey Milovidov
aac0b27daa Fixed possible deadlock in distributed queries 2019-08-31 15:18:14 +03:00
alexey-milovidov
2b124c5af8
Merge pull request #6718 from vitlibar/fix-extract-tuple-from-json
Fix extracting a Tuple from JSON
2019-08-29 17:40:26 +03:00
Vitaly Baranov
6cbb52128b Fix extracting tuple from JSON. 2019-08-29 01:55:35 +03:00
alexey-milovidov
16ba2fa85a
Merge pull request #6662 from Enmk/hasTokenCaseInsensitive
Implemented hasTokenCaseInsensitive function
2019-08-27 00:39:04 +03:00
Vasily Nemkov
d0d63d769e Implemented hasTokenCaseInsensitive function
And tests;
2019-08-26 11:00:48 +03:00
alexey-milovidov
03deb642d5
Merge pull request #6647 from yandex/fix-trim
Fixed "trim" functions
2019-08-24 17:36:38 +03:00
Alexey Milovidov
cc0157b293 Added a test 2019-08-24 02:07:05 +03:00
Alexey Milovidov
d38e9ee229 Fixed "trim" functions (in progress) 2019-08-23 23:32:31 +03:00
alexey-milovidov
eeeaf8fbee
Merge pull request #6643 from yandex/double-whitespaces
Added a check for double whitespaces
2019-08-23 23:10:12 +03:00
alexey-milovidov
012a5f8911
Merge pull request #6596 from Enmk/hasToken
hasToken function implementation
2019-08-23 21:41:33 +03:00
Alexey Milovidov
b42f85e16b Added a check for double whitespaces 2019-08-23 21:30:04 +03:00
Alexey Milovidov
20b9af29f5 More tests 2019-08-23 07:34:59 +03:00
Alexey Milovidov
6685365ab8 Added optimized case 2019-08-23 07:25:32 +03:00
Alexey Milovidov
341e2e4587 Step 1: make it correct. 2019-08-23 06:00:06 +03:00
Alexey Milovidov
1222973cb3 Function "neighbor": merging #5925 2019-08-23 05:02:14 +03:00
Alexey Milovidov
cff8ec43f9 Rename neighbour -> neighbor 2019-08-23 04:31:04 +03:00
alexey-milovidov
49aa9384af
Merge pull request #5925 from alex-krash/function_next_prev_in_block
Implement neighbour() function
2019-08-23 04:28:36 +03:00
Vasily Nemkov
6d78e3be94 hasToken function implementation
* Function to check if given token is present in a string;
* Special case for hasToken to 'tokenbf_v1' index;
* Test cases for hasToken()
* Test case for hasToken() + 'tokenbf_v1' integration
2019-08-22 18:00:35 +03:00
alexey-milovidov
f0e0793cdd
Merge pull request #6581 from yandex/assert_cast
Added checks to static_cast of columns.
2019-08-22 05:09:34 +03:00
Alexey Milovidov
e573b06373 Updated comment 2019-08-21 23:33:38 +03:00
Alexey Milovidov
93d380ddaa Fixed test 2019-08-21 23:32:58 +03:00
alexey-milovidov
e6fd885c68
Merge pull request #6580 from yandex/fix-nullif
Fix nullIf function.
2019-08-21 06:36:47 +03:00
alexey-milovidov
0e896fb341
Merge pull request #6578 from yandex/disable-elf-on-macos
Disable ELF on Mac OS
2019-08-21 06:01:49 +03:00
Alexey Milovidov
8966520801 Added "assert_cast" function as a replacement for static_cast for columns 2019-08-21 05:28:04 +03:00
Alexey Milovidov
b768bef4e3 Fixed nullIf function 2019-08-21 04:43:19 +03:00
Alexey Milovidov
69be2c4658 Fixed nullIf function 2019-08-21 04:28:55 +03:00
Alexey Milovidov
449dc4757a Fixed nullIf function 2019-08-21 04:20:06 +03:00
Alexey Milovidov
562bffb337 Fixed nullIf function 2019-08-21 04:14:25 +03:00
Alexey Milovidov
17e93b8f2d Disable ELF on Mac OS #6429 2019-08-21 03:48:34 +03:00
Nikolai Kochetov
0ab886ce9d Materialize constant in arrayWithConstant function. 2019-08-20 15:28:36 +03:00
Nikolai Kochetov
bfd0505d99 Fix tests. 2019-08-20 11:36:10 +03:00
Nikolai Kochetov
d359ff3d4a Fix build. 2019-08-19 21:34:12 +03:00
Nikolai Kochetov
56a9c3920f Fix build. 2019-08-19 21:28:48 +03:00
Nikolai Kochetov
d4363768e6 Added IFunctonBase::getResultIfAlwaysReturnsConstantAndHasArguments 2019-08-19 20:48:19 +03:00
Nikolai Kochetov
cb848159e1 Merged with master. 2019-08-18 14:52:49 +03:00
proller
d09c5c871b Build fixes (#6491)
* Fix build

* cmake: fix cpuinfo

* Fix includes after processors merge

Conflicts:
	dbms/src/Processors/Formats/Impl/CapnProtoRowInputFormat.cpp
	dbms/src/Processors/Formats/Impl/ParquetBlockOutputFormat.cpp
	dbms/src/Processors/Formats/Impl/ProtobufRowInputFormat.cpp
	dbms/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp

* Fix build in gcc8

* fix test link

* fix test link

* Fix test link

* link fix

* Fix includes after processors merge 2

Conflicts:
	dbms/src/Processors/Formats/Impl/ParquetBlockInputFormat.cpp

* Fix includes after processors merge 3

* link fix

* Fix likely/unlikely conflict with cython

* Fix conflict with protobuf/stubs/atomicops.h

* remove unlikely.h

* Fix macos build (do not use timer_t)
2019-08-18 01:53:46 +03:00
Nikolai Kochetov
86bba711c4 Merge branch 'master' into try-to-remove-dry-run 2019-08-17 13:43:14 +03:00
Nikolai Kochetov
7da72261a2 Merge branch 'master' into try-to-remove-dry-run 2019-08-16 15:50:48 +03:00
Nikolai Kochetov
2ef878d7ce Add alwaysReturnsConstant for IFunctionBase. Set alwaysReturnsConstant=true for ignore. 2019-08-15 22:31:43 +03:00
Nikita Vasilev
a051009d28 add it's a bug mes 2019-08-15 21:48:48 +03:00
Nikita Vasilev
f59fa67050 added type checks for set index functions 2019-08-15 21:46:16 +03:00
Alexandr Krasheninnikov
27b079bd6a Tests added, fix wrong behaviour 2019-08-15 11:59:20 +03:00
Nikolai Kochetov
867a7461dc Make randConstant const again. 2019-08-15 10:32:06 +03:00
alexey-milovidov
7a439e269f
Merge pull request #6470 from alex-krash/function_user
Function currentUser()
2019-08-14 20:09:54 +03:00
Nikolai Kochetov
287eb633b8 Merged with master 2019-08-14 18:16:52 +03:00
Nikolai Kochetov
5131b6af4b Fix header for joins. Make function randConstant not constant. 2019-08-14 18:14:32 +03:00
Nikolai Kochetov
16918c7dba Added more comments. 2019-08-14 18:14:32 +03:00
Nikolai Kochetov
de93b759c9 Return non-const column in ignoreExceptNull. 2019-08-14 18:14:32 +03:00
Alexandr Krasheninnikov
d9234a64c4 Make function return initial user 2019-08-14 15:18:11 +03:00
Alexandr Krasheninnikov
2126196c89 Nullable correct handling 2019-08-14 15:09:51 +03:00
Alexandr Krasheninnikov
986d56ba0c Fix casting style, work with Nullable 2019-08-14 14:32:03 +03:00
Alexandr Krasheninnikov
bc4177f64c Make alias case-insenstitive 2019-08-14 13:20:15 +03:00
Vitaly Baranov
75aa1d7858
Merge pull request #6320 from yandex/simdjson-sse42
Enabled SIMDJSON for SSE 4.2 with PCLMUL instruction set
2019-08-13 23:12:40 +03:00
Alexandr Krasheninnikov
e227611f01 New function currentUser() implemented 2019-08-13 19:05:13 +03:00
Vitaly Baranov
9632c4102a Change test to pass the exceeding of memory limit in ParsedJson::Iterator::Iterator when UBSan is used. 2019-08-13 18:26:31 +03:00
Alexandr Krasheninnikov
6bf3902ce5 Format file 2019-08-13 16:20:32 +03:00
Alexandr Krasheninnikov
ea9cf3a62f Done 2019-08-13 16:11:24 +03:00
Alexandr Krasheninnikov
9fa0b867f1 Merge branch 'master' of https://github.com/yandex/ClickHouse into function_next_prev_in_block 2019-08-13 11:45:00 +03:00
Alexandr Krasheninnikov
31fdc99efc In progress 2019-08-12 18:44:28 +03:00
Alexandr Krasheninnikov
1b54a52488 Temp 2019-08-12 17:10:29 +03:00
Alexandr Krasheninnikov
2e79158b5c Merge branch 'master' of https://github.com/yandex/ClickHouse into function_next_prev_in_block 2019-08-12 12:59:11 +03:00
Guillaume Tassery
3f572a45b7 Fix nullIf when we have a null constant on the right argument 2019-08-12 10:46:58 +02:00
Alexey Milovidov
45b88adedc Merge branch 'master' into fix-array-enumerate-uniq-ranked 2019-08-11 00:35:37 +03:00
alexey-milovidov
30f8529e04
Merge pull request #6325 from kreuzerkrieg/Shadow4GCC
adding -Wshadow for GCC
2019-08-10 17:29:10 +03:00
Alexey Milovidov
7e6b1333a1 Renamed Yandex CTO just in case 2019-08-10 00:58:17 +03:00
kreuzerkrieg
112fc71276 adding -Wshadow for GCC 2019-08-09 23:58:16 +03:00
Alexey Milovidov
f636a4c2c1 Fixed arrayEnumerateUniqRanked function (TODO: simplify code as much as possible) 2019-08-09 20:25:19 +03:00
alexey-milovidov
80e68a803b
Merge pull request #6374 from dimarub2000/fix_toFloat_monotonicity
toFloat() monotonicity fixed
2019-08-08 19:11:38 +03:00
dimarub2000
90010c4040 Changed to a more suitable name 2019-08-08 11:41:38 +03:00
alexey-milovidov
99fad0904b
Merge pull request #6314 from infinivision/add_bitmapRange
added bitmapRange function
2019-08-08 04:51:48 +03:00
Alexey Milovidov
cfe3112bf2 Enabled SIMDJSON for SSE 4.2 with PCLMUL instruction set 2019-08-07 15:07:34 +03:00
dimarub2000
7f26e09160 toFloat() monotonicity fixed 2019-08-07 12:22:33 +03:00
Alexander Kuzmenkov
224ed0ca67 Revert wrong merge commit.
This reverts commit 9cd9c69449.
2019-08-06 17:59:19 +03:00
Vasily Nemkov
9cd9c69449 geohashesInbox(lon_min, lat_min, lon_max, lat_max, precision) function (#6127) 2019-08-06 17:57:17 +03:00
Vasily Nemkov
fcb0482830 Implement geohashesInBox function. #6127 2019-08-06 17:53:06 +03:00
alexey-milovidov
416a498b0f
Merge pull request #6329 from Vdimir/throwif-custom-message-5772
Added optional message argument in throwIf (#5772)
2019-08-06 17:27:46 +03:00
Alexandr Krasheninnikov
cfec857f2c Add trailing newline 2019-08-06 14:51:13 +03:00
Alexandr Krasheninnikov
8e535a9cb0 Implement nextInBlock function 2019-08-06 14:51:13 +03:00
Nikolai Kochetov
6685ccba65
Merge pull request #6346 from yandex/more-checks-in-cast-function
Added more checks in CAST function.
2019-08-06 10:47:54 +03:00
Alexey Milovidov
95532f2d31 Fixed minor discrepancies 2019-08-05 19:04:47 +03:00
Nikolai Kochetov
50c39e8b86 Added more checks in CAST function. 2019-08-05 18:23:32 +03:00
VDimir
259364a4f8 Minor fixes in throwIf implementation 2019-08-05 10:30:35 +03:00
Zhichang Yu
e1f3ef2115 renamed bitmapRange to bitmapSubsetInRange 2019-08-05 10:27:12 +08:00
VDimir
1e6972b38e Added optional message argument in throwIf (#5772) 2019-08-05 02:24:16 +03:00
alexey-milovidov
0c150fbf66
Merge pull request #6321 from yandex/every_function_in_own_file_10
Every function in its own file, part 10
2019-08-05 01:02:02 +03:00
Alexey Milovidov
f9d3d996e4 Unsignificant modification 2019-08-04 21:20:50 +03:00
Alexey Milovidov
200b994628 Proper fix for arrayReduce and whatever #6295 2019-08-04 21:18:26 +03:00
Alexey Milovidov
184fc70a27 Fixed error 2019-08-04 18:57:57 +03:00
Zhichang Yu
09edfaf49c let Style Check happy 2019-08-04 22:48:48 +08:00
Alexey Milovidov
aa234b402a Every function in its own file, part 10 2019-08-04 17:30:08 +03:00
Alexey Milovidov
66acafe70e Every function in its own file, part 10 2019-08-04 17:01:04 +03:00
alexey-milovidov
261abd6c41
Merge pull request #6319 from nikvas0/nikvas0/fix_set_index
Add Comments for set index functions
2019-08-04 16:39:57 +03:00
Nikita Vasilev
dec8de640f improve book mask or 2019-08-04 16:31:37 +03:00
Nikita Vasilev
5d47a858c5 add comments 2019-08-04 16:03:38 +03:00
alexey-milovidov
7388454eb2
Merge pull request #6306 from yandex/simdjson-update
Updated SIMDJSON
2019-08-04 06:29:28 +03:00
alexey-milovidov
14671d6df8
Merge pull request #6254 from yandex/fastops
Integration with "FastOps" library. Added functions sigmoid and tanh.
2019-08-04 06:28:34 +03:00
proller
77bd2624ea Build fixes (#6016)
* Fix building without submodules

* Fix more gcc9 warnings

* was wrong!
../dbms/src/IO/WriteBufferAIO.cpp:277:54: error: result of comparison 'ssize_t' (aka 'long') > 9223372036854775807 is always false [-Werror,-Wtautological-type-limit-compare]
    if ((static_cast<ssize_t>(flush_buffer.offset()) > std::numeric_limits<off_t>::max()) ||
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* mimalloc off MI_OVERRIDE

* Fix freebsd build

* Fix shared build

* Fix build in gcc9

* Fix split build

* fix

* fix

* fix

* fix

* clean

* zstd

* Update CMakeLists.txt

* Update Defines.h

* Try fix -Wsign-compare

* Freebsd fix

* Add missing libs

* Fix double-conversion include for copy-headers

* Fix zlib link

* Fix includes for arcadia

* Fix includes for arcadia

* Fix includes for arcadia

* Freebsd fix

* Arcadia fixes

* Update QueryProfiler.cpp

* Freebsd fix

* clean

* 19.11: Fixes for arcadia porting (#6223)

* fix glibc-compatibility

* M_LIBRARY fix

* wip

* Fix

* Fix arm build

* unwind fix

* Update CMakeLists.txt
2019-08-04 03:19:03 +03:00
alexey-milovidov
e61f647492
Merge pull request #6282 from nikvas0/nikvas0/fix_set_index
fix operators in set index
2019-08-04 02:52:57 +03:00
Alexey Milovidov
72c0892246 Merge branch 'simdjson-update' of github.com:yandex/ClickHouse into simdjson-update 2019-08-03 23:12:52 +03:00
Alexey Milovidov
63f508ae04 Merge branch 'master' into simdjson-update 2019-08-03 23:12:24 +03:00
Zhichang Yu
4f146eaa7e added bitmapRange function 2019-08-03 23:07:46 +08:00
Nikita Vasilev
5ce205941a fix 2019-08-03 09:46:25 +03:00
Alexey Milovidov
b9d39f4882 Merge branch 'master' into fastops 2019-08-03 06:24:33 +03:00
alexey-milovidov
309f14d924
Use SIMDJSON only on AVX2 machines as before. 2019-08-03 06:18:09 +03:00
Alexey Milovidov
11762f6eec Updated SIMDJSON 2019-08-03 02:24:50 +03:00
Alexey Milovidov
a5a6aaf8b1 Merge branch 'master' into fastops 2019-08-03 01:58:38 +03:00
Alexey Milovidov
7394d3e73a Fixed exception message 2019-08-03 01:42:21 +03:00
Alexey Milovidov
62053314bb Fixed FPE in yandexConsistentHash 2019-08-03 01:40:28 +03:00
Nikita Vasilev
bfa9a2c86f fixed index condition 2019-08-02 22:21:55 +03:00
Alexey Milovidov
35a71506a5 Fixed error 2019-08-02 21:59:19 +03:00
chertus
fcc6a2c2be fix crash on CAST exotic types to decimal 2019-08-02 17:31:55 +03:00
Nikita Vasilev
7aacbbdc5a fix bug 2019-08-01 22:18:36 +03:00
Alexey Milovidov
5c361c327b Enabled "precise" mode; updated tests 2019-08-01 22:17:49 +03:00
Alexey Milovidov
c3f54f85c1 Fixed error with "unbundled" build 2019-08-01 06:06:15 +03:00
Alexey Milovidov
a25890c038 Merge branch 'master' into fastops 2019-08-01 06:05:53 +03:00
alexey-milovidov
e8cac8ab6e
Merge pull request #6253 from yandex/std-filesystem-2
Changed boost::filesystem to std::filesystem
2019-08-01 04:32:40 +03:00
Alexey Milovidov
ec2fd3e29d Added missing files 2019-08-01 04:17:44 +03:00
Alexey Milovidov
b1c9fc0233 Using FastOps library 2019-08-01 03:29:32 +03:00
Alexey Milovidov
fb3824f98b Merge branch 'master' into fastops 2019-08-01 01:59:59 +03:00
Alexey Milovidov
f3921ce3e0 Changed boost::filesystem to std::filesystem 2019-08-01 01:37:41 +03:00
Alexey Milovidov
5cedc24e51 Fixed error 2019-07-31 21:04:24 +03:00
Alexey Milovidov
52650ce2f7 Fixed overflow in intDiv functions 2019-07-31 04:05:33 +03:00
Alexey Milovidov
20ae0ee80e Added a flag to disable introspection functions 2019-07-30 02:54:49 +03:00
Alexey Milovidov
efbbb14972 Renamed function symbolizeAddress to addressToSymbol 2019-07-30 02:49:00 +03:00
Alexey Milovidov
256e260693 Added one more function for introspection 2019-07-30 02:37:50 +03:00
Alexey Milovidov
97ac56139b Addition to prev. revision 2019-07-30 01:50:39 +03:00
Alexey Milovidov
0cbd4f68ce Addition to prev. revision 2019-07-30 01:37:26 +03:00
Alexey Milovidov
a05c6026dc Addition to prev. revision 2019-07-30 01:34:05 +03:00
Alexey Milovidov
10439bc010 Addition to prev. revision 2019-07-30 01:33:28 +03:00
Alexey Milovidov
ad3f2066d9 Added missing file 2019-07-30 01:27:02 +03:00
Alexey Milovidov
372c4d89b2 Enabled line numbers in stack traces 2019-07-30 01:26:44 +03:00
Alexey Milovidov
15dc6d1818 Advancements 2019-07-29 21:38:04 +03:00
Alexey Milovidov
5fbe53b562 Speedup "symbolizeAddress" function 2019-07-29 04:08:52 +03:00
Alexey Milovidov
050db07e3d Merge branch 'master' into merge-profiler 2019-07-25 22:54:22 +03:00
Nikolai Kochetov
ca17df3f26
Merge pull request #6119 from yandex/fix-cast-from-nullable-lc
Fix LowCardinality(Nullable) to not-Nullable cast.
2019-07-24 12:49:20 +03:00
Alexey Milovidov
36746d85dd Better cache for symbolizeAddress function 2019-07-24 03:47:17 +03:00
Alexey Milovidov
1913bfa276 Added cache for symbolizeAddress function 2019-07-23 17:59:29 +03:00
Alexey Milovidov
0755d1e4b3 Added demangling to function symbolizeAddress 2019-07-23 16:34:22 +03:00
Alexey Milovidov
bd3173bac2 Added comment 2019-07-23 16:17:56 +03:00
Alexey Milovidov
398a280f23 Fixed error 2019-07-23 16:16:51 +03:00
Alexey Milovidov
97103b9067 Every function in its own file 2019-07-23 15:55:13 +03:00
Alexey Milovidov
2d895c4fe6 Changed symbolizeTrace to symbolizeAddress 2019-07-23 15:46:58 +03:00
akazz
6aae1ad391 Adjusted comments in the .h 2019-07-23 13:34:56 +03:00
Nikolai Kochetov
1e35f87760 Fix CAST from LowCardinality(Nullable). 2019-07-23 10:57:32 +03:00
alexey-milovidov
e4ad0da6e3
Merge pull request #4247 from laplab/query-poor-mans-profiler
Poor man's profiler on query level [Work in progress]
2019-07-23 03:02:58 +03:00
Alexey Milovidov
b282c6160d Added "fastops" as submodule 2019-07-23 02:41:06 +03:00
akazz
58d83e44ed Build fixed 2019-07-23 01:39:42 +03:00
Nikolai Kochetov
1d960e5c0b Fix CAST from LowCardinality(Nullable). 2019-07-22 18:41:52 +03:00
Alexander Kazakov
9c769bb942 Fixed build in clang 2019-07-22 16:56:38 +03:00
Alexander Kazakov
2ebf2e8d69 Sync with upstream 2019-07-22 16:41:04 +03:00
alexey-milovidov
67b72f4261
Merge pull request #6029 from yandex/aku/agg-arenas
Do not access shared arenas in aggregate function columns.
2019-07-20 03:16:24 +03:00
alexey-milovidov
4adf47bb77
Merge pull request #6068 from PerformanceVision/fix_ipv6_cidr
Resolve segfault on IPv6CIDRToRange with setting a max cidr
2019-07-20 00:32:05 +03:00
alexey-milovidov
14f14c68cb
Update FunctionsCoding.h 2019-07-19 23:58:28 +03:00
Guillaume Tassery
7063ab3c38 Set max CIDR for IPV6 cidr function 2019-07-19 11:39:25 +02:00
Alexander Kuzmenkov
9df09f3506 Do not access shared arenas in aggregate function columns.
These arenas may be updated concurrently, so it is unsafe to
access them, as illustrated by issue #4402. Store them separately
and use a different arena for the updates. Change some callers
to accomodate for this.
2019-07-18 14:21:37 +03:00
akazz
87ef45bd3a Fixed column size mismatch in some scenarios 2019-07-18 13:20:53 +03:00
akazz
e34e745466 Fix for consts 2019-07-18 13:14:12 +03:00
akazz
b6960e6700 Minor renamings 2019-07-18 12:09:29 +03:00
akazz
eb10ae0e5e WIP - Fixes and code moving around 2019-07-18 11:07:24 +03:00
akazz
6f9d87f787 WIP - Made code much more compact 2019-07-17 19:10:37 +03:00
akazz
f75585cd46 Moving around some code 2019-07-17 00:06:23 +03:00
akazz
df2d347617 WIP: Candidate1 - Much less code. Several TODO's are still there 2019-07-16 23:57:11 +03:00
Alexey Milovidov
68ba42cc89 Using std::gcd, lcm instead of boost 2019-07-15 17:45:56 +03:00
Vitaly Baranov
fd89a8b051
Merge pull request #5212 from andyyzh/custom_week_functions
Added functions for working with the Custom week number
2019-07-12 14:00:35 +03:00
Vitaly Baranov
8306f25634 Extra bytes after correctly parsed JSON is now considered as a parsing error. 2019-07-11 11:31:45 +03:00
Nikita Lapkov
9d540abc84 refactor 2019-07-10 20:47:39 +00:00
Alexey Milovidov
f748efbb5b Fixed ubsan report in fuzz test 2019-07-09 01:30:30 +03:00
alexey-milovidov
3c7178a8d1
Merge pull request #5923 from yandex/add-noreturn
Add two more warnings from -Weverything
2019-07-09 00:10:35 +03:00
Alexey Milovidov
3779a5cba2 Addition to prev. revision 2019-07-08 19:01:00 +03:00
Alexey Milovidov
03712aabec Add two more warnings from -Weverything 2019-07-08 03:16:39 +03:00
Nikita Lapkov
e935cb08a8 Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler 2019-07-07 01:06:10 +00:00
alexey-milovidov
a1cfdf2a60
Merge pull request #5855 from abyss7/no-undefined
Use --no-undefined linker option for split build
2019-07-07 01:47:11 +03:00
Alexey Milovidov
b396a5a392 Little better 2019-07-05 21:36:20 +03:00
Alexey Milovidov
1c2e422797 Fixed buffer underflow in visitParamExtractRaw 2019-07-05 21:23:14 +03:00
Nikita Lapkov
b8585a5630 refactor and comments 2019-07-05 13:48:47 +00:00
Nikita Lapkov
0f579860f7 Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler 2019-07-04 22:13:51 +00:00
Ivan Lezhankin
3b995bdb02 Add missing dependecies on sight to enable --no-undefined option 2019-07-04 17:05:55 +03:00
alexey-milovidov
d81ae49f2c
Merge pull request #5755 from 4ertus2/bugs
Fix wrong ColumnConst.isColumnNullable()
2019-07-03 02:06:07 +03:00
Alexander Kuzmenkov
b445525426 Include asan_interface.h before including LLVM internals. 2019-07-02 20:48:00 +03:00
filimonov
c5492e59f1
more accidental spaces 2019-07-01 17:01:10 +02:00
filimonov
051a9ae492
remove accidental spaces 2019-07-01 16:44:45 +02:00
filimonov
2627dec804
fix build on macosx and gcc9 2019-07-01 16:42:05 +02:00
chertus
5df4ad0f28 Merge branch 'master' into bugs 2019-07-01 14:49:01 +03:00
chertus
0c634129da add IColumn.isNullable() 2019-07-01 14:44:19 +03:00
alexey-milovidov
c108882c5f
Merge pull request #5805 from yandex/BHYCHIK-h3-integration
Merge H3 integration
2019-07-01 01:02:16 +03:00
alexey-milovidov
a9cfe4ce91
Merge pull request #5807 from yandex/ngramSearch
Inverting ngramSearch to be more intuitive
2019-07-01 00:43:17 +03:00
Alexey Milovidov
fd2f90488e Simplification 2019-06-30 23:54:06 +03:00
Alexey Milovidov
6eae511b6e Changed order of (lat, lon) to (lon, lat) to be consistent with "greatCircleDistance" function and PostGIS 2019-06-30 23:13:32 +03:00
Alexey Milovidov
7591c3b7b2 Fixed error 2019-06-30 22:47:20 +03:00
Alexey Milovidov
7c98327e4d Fixed error 2019-06-30 22:46:23 +03:00
Alexey Milovidov
86093a474f Fixed error 2019-06-30 22:45:23 +03:00
Danila Kutenin
9127c8b27c inverting ngramSearch to be more intuitive 2019-06-30 22:34:17 +03:00
Alexey Milovidov
a7fc631de7 Style 2019-06-30 21:55:08 +03:00
Alexey Milovidov
1777313821 Own CMakeLists for H3 because otherwise "m" library does not link correctly 2019-06-30 21:49:57 +03:00
Alexey Milovidov
008f3a247e Merging H3 integration 2019-06-30 21:20:32 +03:00
alexey-milovidov
feafcb21bd
Merge branch 'master' into h3-integration 2019-06-30 16:19:11 +03:00
alexey-milovidov
87993de98d
Merge pull request #5725 from yandex/PerformanceVision-ignore_scheme
Performance vision ignore scheme
2019-06-29 20:36:23 +03:00
alexey-milovidov
a0d3db8d9b
Merge pull request #5787 from yandex/aku/podarray-bytes
Fix initial size of some inline PODArray's.
2019-06-29 15:34:00 +03:00
Alexander Kuzmenkov
0116c10e41 Require explicit type in unalignedStore
This is a follow-up to PR #5786, which fixed a segfault caused by
an unexpected deduced type for unalignedStore. To prevent future errors
of this kind, require a caller to specify the stored type explicitly.
2019-06-28 20:33:14 +03:00
Alexander Kuzmenkov
a719933c58 Fix initial size of some inline PODArray's.
A template parameter of PODArray named INITIAL_SIZE didn't make its
units clear, which made some callers to erroneously assume that it
specifies the number of elements and not the number of bytes.
Rename it, fix the wrong usages and, where possible, use the
PODArrayWithStackMemory typedef for arrays with inline memory.
2019-06-28 16:03:14 +03:00
alexey-milovidov
b9cbd36487
Merge pull request #5750 from hczhcz/patch-7
Refactor: Improve function registering
2019-06-28 14:50:38 +03:00
alexey-milovidov
1327342040
Merge pull request #5764 from hczhcz/patch-8
Add synonim arrayFlatten <-> flatten
2019-06-28 14:49:05 +03:00
alexey-milovidov
8b93f086aa
Merge pull request #5777 from proller/fix27
Move file Functions/array/empty.cpp -> Functions/empty.cpp
2019-06-28 14:47:12 +03:00
hcz
1d2695cbd2 Add alias flatten/arrayFlatten 2019-06-28 11:55:09 +08:00
chertus
f19dee706a move IColumn.isColumnConst() outside of interface 2019-06-27 22:28:52 +03:00
Alexey Milovidov
3c4784a466 Removed obsolete undocumented embedded dictionaries that were used by Yandex.Metrica 2019-06-27 22:18:28 +03:00
chertus
db7c8748e9 remove IColumn.isColumnNullable() 2019-06-27 21:50:20 +03:00
proller
da6490c11d renamed: Functions/array/notEmpty.cpp -> Functions/notEmpty.cpp 2019-06-27 21:43:40 +03:00
proller
0baaa4b254 Move file Functions/array/empty.cpp -> Functions/empty.cpp 2019-06-27 20:45:41 +03:00
chertus
68034103bb fix arrayIndex for new columns's isNullable 2019-06-27 15:49:08 +03:00
chertus
65c0d23efa better casts to ColumnNullable 2019-06-26 20:20:33 +03:00
Ivan Remen
718da84f41 Fix 2019-06-26 20:02:31 +03:00
Ivan Remen
c22322a446 3rd party header compile fix 2019-06-26 19:01:18 +03:00
alesapin
197f1eedd2 Remove searcher 2019-06-26 18:22:15 +03:00
alesapin
306e27c152 Return old behaviour 2019-06-26 18:18:12 +03:00
Ivan Remen
30c7055d3b Fix 2019-06-26 17:15:29 +03:00
Nikita Lapkov
7cff36fbfc Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler 2019-06-26 11:46:04 +00:00
alesapin
f740334ee5 Faster scheme search
Add docs
2019-06-26 13:26:34 +03:00
hcz
da206109a6 Move registerFunctionConvertCharset 2019-06-26 16:05:53 +08:00
hcz
97b762ad06 Improve function registering 2019-06-26 15:53:43 +08:00
Ivan Remen
7a5979cc0a Fix bug 2019-06-26 02:11:28 +03:00
Ivan Remen
d933b024bd Fix now??? 2019-06-26 00:49:42 +03:00
alesapin
bd56f219ab Fix style 2019-06-25 19:15:00 +03:00
alesapin
ff72cf4893 Trying to do everything in one pass 2019-06-25 18:54:47 +03:00
Ivan Remen
737abcdbfc Finally fix?? 2019-06-25 15:43:07 +03:00
Ivan Remen
6f6c1167bc Fix 2019-06-25 12:44:55 +03:00
alesapin
fff18f78db Fix tail detection 2019-06-25 12:12:28 +03:00
alesapin
fa88954e56 Better scheme cut 2019-06-25 12:04:35 +03:00
Ivan Remen
f3c8ac2d3b Merge remote-tracking branch 'main/master' into h3-integration 2019-06-25 11:23:53 +03:00
Ivan Remen
0b28e73f50 Fix unblundled build 2019-06-25 11:23:36 +03:00
alesapin
48451b2b0f Better name 2019-06-24 22:00:40 +03:00
alesapin
c6ece40f3c Fix minor bug and style 2019-06-24 16:04:20 +03:00
alesapin
5b378a3f01 Remove degug info 2019-06-24 14:18:53 +03:00
proller
1ac09fa721
Split Common/config.h by libs (dbms) (#5715) 2019-06-24 14:17:15 +03:00
alesapin
331e17d56a Return scheme logic 2019-06-24 14:16:08 +03:00
alesapin
56a7595254 Slightly speed up 2019-06-24 13:47:17 +03:00
Andy Yang
4b6efaa4b9 Merge branch 'master' into custom_week_functions
update last code
2019-06-24 09:53:38 +08:00
akazz
ae04de1f9f [WIP] Basic working version 2019-06-22 13:49:19 +03:00
proller
badb6ab831
Functions: make array and gatherutils libs (#5712) 2019-06-21 18:31:37 +03:00
alesapin
8b263739ce Comments 2019-06-21 16:01:27 +03:00
alesapin
92509b71a4 Slightly speedup 2019-06-21 16:01:16 +03:00
alesapin
682e803fc9 Merge with master 2019-06-21 12:44:57 +03:00
proller
f111dbd45f Do not require gperf on build (#5701)
* Build fixes

* fix

* USE_GPERF

* wip

* wip

* wip

* test -j

* Simpler

* fix

* FunctionsURL.h -> URL/FunctionsURL.h

* clean

* clean

* Always use gperf-generated file

* Generator for tldLookup.generated.cpp

* clang-format
2019-06-21 02:50:53 +03:00
proller
fa809de91f
Move all url functions to clickhouse_functions_url lib (#5696) 2019-06-20 18:49:54 +03:00
Ivan Remen
b439769aa7 Merge remote-tracking branch 'main/master' into h3-integration-fix 2019-06-20 13:53:17 +03:00
Ivan Remen
6064a1ed7c Fix geoToH3 compile 2019-06-20 13:44:34 +03:00
proller
3d8c8ee83c
Build fixes. Split config.h (#5686) 2019-06-20 12:12:49 +03:00
alexey-milovidov
1a19a36704
Update CRC32.cpp 2019-06-20 01:31:51 +03:00
Ivan Remen
b353b8347a Merge remote-tracking branch 'main/master' into crc32-for-master 2019-06-19 15:16:20 +03:00
Ivan Remen
85fd2b3127 Fix compile 2019-06-19 11:33:45 +03:00
Ivan Remen
64231090cd Fix compile 2019-06-19 11:14:49 +03:00
Ivan Remen
f6b16e40af Rename file 2019-06-19 11:02:50 +03:00
Ivan Remen
80ee05eb8d Make CRC32 case insensitive 2019-06-19 10:59:38 +03:00
alexey-milovidov
9bdbd84263
Merge pull request #5030 from PerformanceVision/top_level_domain
Changing how the function (cutTo)firstSignificantSubdomain detect the tld (proposal)
2019-06-19 02:08:43 +03:00
Andy Yang
6085fce8d7 some review fixes and add new function toStartOfWeek 2019-06-18 17:48:07 +08:00
Ivan Remen
d70d8f533d Delete bad function 2019-06-18 11:23:56 +03:00
Ivan Remen
93df144ed1 Use zlib-ng crc32 2019-06-18 11:04:27 +03:00
Ivan Remen
edff6e58dc Support crc32 function 2019-06-18 00:54:26 +03:00