Commit Graph

15384 Commits

Author SHA1 Message Date
mf5137
c07b0659fd Performance tests for hash functions2 2018-12-24 15:09:54 +01:00
Alexey Milovidov
ce10674107 Fixed weird error in PR #3870 2018-12-24 16:25:48 +03:00
alesapin
29ad7f9fb1 Remove redundant changes and shift error codes 2018-12-24 16:19:24 +03:00
alexey-milovidov
659bb3f56c
Merge pull request #3910 from amosbird/ub
Fix UB.
2018-12-24 16:04:14 +03:00
alexey-milovidov
add2c0a6fc
Merge branch 'master' into int-round-overflow 2018-12-24 15:50:13 +03:00
alexey-milovidov
1923ee9423
Merge pull request #3913 from yandex/fix-buffer-overflow-in-add-days
Fix buffer overflow in functions addDays, subtractDays
2018-12-24 15:47:46 +03:00
Alexey Milovidov
1dffa56073 Fixed test #3913 2018-12-24 15:47:24 +03:00
KochetovNicolai
99c73209a9
Update build_catboost.sh
Fix build script for CatBoost models.
2018-12-24 15:37:46 +03:00
KochetovNicolai
1070702168
Update CatBoostModel.cpp
Do not evaluate CatBoost model on empty dataset.
2018-12-24 15:35:46 +03:00
mf5137
67ad598582 Performance tests for hash functions 2018-12-24 12:38:07 +01:00
alesapin
1e771a4aec Fix error codes 2018-12-24 14:34:50 +03:00
Alexey Milovidov
7cfa7c3dbe KILL QUERY: make WHERE clause mandatory #3916 2018-12-24 14:08:09 +03:00
Alexey Milovidov
184c36d78d Fixed error in KILL QUERY #3916 2018-12-24 14:06:35 +03:00
Alexey Milovidov
2ee4c443d5 Merge branch 'master' of github.com:yandex/ClickHouse into kafka-segfault-investigation 2018-12-24 14:05:36 +03:00
qianlixiang
416d6aa788 Fixed core dump caused by kill query sync 2018-12-24 16:17:22 +08:00
Alexey Milovidov
0b760ee9e9 Fixed overflow in rounding functions with integer argument and large negative scale [#CLICKHOUSE-2] 2018-12-24 03:47:11 +03:00
Alexey Milovidov
8c00157bc8 Merge branch 'master' into fix-buffer-overflow-in-add-days 2018-12-24 02:18:16 +03:00
Alexey Milovidov
80f155cfda Fixed overflow in rounding functions with integer argument and large negative scale [#CLICKHOUSE-2] 2018-12-24 02:12:30 +03:00
Alexey Milovidov
aca29588c7 Added test for already fixed bug [#CLICKHOUSE-2] 2018-12-24 01:39:49 +03:00
alexey-milovidov
f04f13a77a
Merge branch 'master' into fix-buffer-overflow-in-add-days 2018-12-24 01:23:32 +03:00
Alexey Milovidov
7678db6e9d Added a test for already fixed bug [#CLICKHOUSE-2] 2018-12-24 01:22:55 +03:00
Alexey Milovidov
c828afd3db Added a test for already fixed bug [#CLICKHOUSE-2] 2018-12-24 01:20:44 +03:00
Alexey Milovidov
5ccf9e1d54 Updated test #3913 2018-12-24 01:16:04 +03:00
Alexey Milovidov
f09da489f7 Added test #3913 2018-12-24 01:10:48 +03:00
Alexey Milovidov
fbee51bb7d Removed redundand code #3785 2018-12-24 00:38:53 +03:00
Alexey Milovidov
986f96ada9 Removed redundand code #3785 2018-12-24 00:37:42 +03:00
alexey-milovidov
b9c4ede4fd
Merge pull request #3785 from sergey-v-galtsev/match-process-euid-against-data-owner
Match the process' effective user id against the data owner at the server startup.
2018-12-23 22:28:54 +03:00
Alexey Milovidov
6368daff63 Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-23 22:25:53 +03:00
Alexey Milovidov
7b420297ed Fixed "unbundled" build #3905 2018-12-23 22:25:40 +03:00
proller
bebaf9d861 Fix includes, Faster compile (#3898)
* Fix includes

* Faster compile

* WTFix

* Limit compile and linking jobs according to available memory

* Add comment

* fix

* Remove ALL from copy-headers target

* Freebsd fix

* Better

* cmake: split use libcxx
2018-12-23 17:19:11 +03:00
Amos Bird
71fad54eb2 Fix UB. 2018-12-23 16:21:55 +08:00
alexey-milovidov
a03c28d0e6
Merge pull request #3909 from yandex/fix-use-after-free-in-array-enumerate
Fix use after free in arrayEnumerateUniq and -Dense function.
2018-12-23 06:11:43 +03:00
alexey-milovidov
b658ea452e
Merge pull request #3900 from infovista/add_column_if_not_exists
Support for IF NOT EXISTS in ALTER TABLE ADD COLUMN
2018-12-23 05:37:39 +03:00
Alexey Milovidov
34bed6c078 Fixed test [#CLICKHOUSE-2] 2018-12-23 05:12:18 +03:00
Alexey Milovidov
dd7325480f Fixed test [#CLICKHOUSE-2] 2018-12-23 05:11:56 +03:00
Alexey Milovidov
4468462ca6 Fixed test #3909 2018-12-23 04:48:09 +03:00
Alexey Milovidov
19d57c78b5 Fixed test #3909 2018-12-23 04:46:30 +03:00
Alexey Milovidov
83cf88c9c1 Less garbage #3909 2018-12-23 04:41:03 +03:00
Alexey Milovidov
fac239147d Added test #3909 2018-12-22 19:19:16 +03:00
Alexey Milovidov
94948cb587 Less garbage [#CLICKHOUSE-2] 2018-12-22 18:40:51 +03:00
alexey-milovidov
536c41102c
Merge branch 'master' into xxhash 2018-12-21 21:59:51 +03:00
mf5137
3757007118 Adding xxHash64 and xxHash32 functions 2018-12-21 18:53:16 +01:00
Alexey Zatelepin
37065b6b8f prevent race condition when locking a distributed ALTER task for execution [#CLICKHOUSE-4221] 2018-12-21 20:28:21 +03:00
Alexey Milovidov
2c6e49c3f3 More checks [#CLICKHOUSE-2] 2018-12-21 19:24:47 +03:00
Alexey Milovidov
661a117b91 Added assertion [#CLICKHOUSE-2] 2018-12-21 19:03:40 +03:00
Alexey Milovidov
a8f09809f5 Simplified logic with "IColumn::convertToFullColumnIfConst" (suggested by Amos Bird) [#CLICKHOUSE-2] 2018-12-21 19:00:07 +03:00
alexey-milovidov
e9619169b5
Merge pull request #3896 from zhang2014/fix/check_type_with_converts
Fix check data type with converts function
2018-12-21 18:43:46 +03:00
Boris Granveaud
d776d1164a support for IF EXISTS/IF NOT EXISTS in ALTER TABLE ADD/DROP/CLEAR/MODIFY/COMMENT COLUMN 2018-12-21 15:53:00 +01:00
Alexey Milovidov
a7f768d623 Merge branch 'master' of github.com:yandex/ClickHouse into fix-use-after-free-in-array-enumerate 2018-12-21 17:33:10 +03:00
Alexey Milovidov
08d573d402 Fixed error with unused variable #3826 2018-12-21 17:23:39 +03:00
alesapin
a0240d8a0e Remove accident change 2018-12-21 17:19:49 +03:00
alesapin
74ea831240 Remove commented codec 2018-12-21 17:06:49 +03:00
alesapin
42b9735760 Add LZ4HC 2018-12-21 17:03:53 +03:00
alesapin
6f7333840a Move header with compression info to another place 2018-12-21 16:25:39 +03:00
alesapin
7c11455bd3 Remove compression settings 2018-12-21 15:17:30 +03:00
zhang2014
6ffdcb38a2 Fix check data type with converts function 2018-12-21 19:37:33 +08:00
alesapin
5b23210062 Merge branch 'master' into custom_compression_codecs 2018-12-21 11:57:21 +03:00
alexey-milovidov
52efaf6bb7
Merge pull request #3870 from zhang2014/fix/string_monotonicity
Fixed convert function monotonic failure when string data type
2018-12-20 23:55:58 +03:00
alexey-milovidov
b1602a5e62
Merge pull request #3887 from yandex/remove-alter-primary-key
Remove ALTER MODIFY PRIMARY KEY command
2018-12-20 22:21:08 +03:00
Alexey Milovidov
b6ebe2df19 Added missing test #3826 2018-12-20 22:13:12 +03:00
Alexey Milovidov
a042e4e9e7 Merge branch 'master' of github.com:yandex/ClickHouse into fix-use-after-free-in-array-enumerate 2018-12-20 22:07:00 +03:00
Alexey Milovidov
f6ce803eff Better implementation of regexpQuoteMeta #3826 2018-12-20 22:06:46 +03:00
Alexey Zatelepin
b7afe46dfd remove ALTER MODIFY PRIMARY KEY command [#CLICKHOUSE-4214] 2018-12-20 21:57:20 +03:00
Alexey Milovidov
6a914f5b3c Merge branch 'master' of github.com:yandex/ClickHouse into fix-use-after-free-in-array-enumerate 2018-12-20 21:17:21 +03:00
Alexey Milovidov
980d6d9e46 Fixed error in "regexpQuoteMeta" function #3826 2018-12-20 21:16:06 +03:00
alexey-milovidov
d9e8cd46da
Merge pull request #3879 from yandex/setting-low_cardinality_allow_in_native_format
Added low_cardinality_allow_in_native_format setting.
2018-12-20 21:02:02 +03:00
Alexey Milovidov
5346e1c575 Merge branch 'master' of github.com:yandex/ClickHouse into fix-use-after-free-in-array-enumerate 2018-12-20 20:58:58 +03:00
alexey-milovidov
f85857d8ff
Merge pull request #3826 from yandex/missing-sql-compatibility-functions
Additional functions for SQL compatibility
2018-12-20 20:51:05 +03:00
Alexey Milovidov
1841634ae2 Removed accidential change [#CLICKHOUSE-2] 2018-12-20 20:49:37 +03:00
Alexey Milovidov
9c65c539cd Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-20 20:48:20 +03:00
Alexey Milovidov
b7b418a6f5 Renamed setting #3851 2018-12-20 20:48:11 +03:00
alexey-milovidov
4993cb53d1
Merge pull request #3886 from yandex/low-cardinality-specialized-aggregation
Added LowCardinality support for specialized aggregation.
2018-12-20 20:46:49 +03:00
Alexey Milovidov
edc415857c Removed accidential change [#CLICKHOUSE-2] 2018-12-20 20:46:31 +03:00
alesapin
aee6c0a606 Remove dump code 2018-12-20 20:37:02 +03:00
alexey-milovidov
3cefb27e56
Merge pull request #3851 from abyss7/issue-3592
Refactor constant folding
2018-12-20 19:26:02 +03:00
Alexey Milovidov
cbbf0bdb58 Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-20 19:11:55 +03:00
Alexey Milovidov
7f544da83c Added performance test #3139 2018-12-20 19:11:45 +03:00
Alexey Milovidov
c8cab3cf1e Added performance test #3139 2018-12-20 19:11:22 +03:00
Alexey Milovidov
8f4b10bc51 Merge branch 'master' of github.com:yandex/ClickHouse into fix-use-after-free-in-array-enumerate 2018-12-20 18:19:15 +03:00
Nikolai Kochetov
18b530544e Fix setting description. 2018-12-20 18:17:07 +03:00
Alexey Milovidov
731d76821d Merging abandoned pull request with "boundingRatio" function #3139 2018-12-20 18:14:32 +03:00
Nikolai Kochetov
fbcf6640c9 Fix style. 2018-12-20 17:54:26 +03:00
Nikolai Kochetov
7b994d983f Fix Native streams headers. 2018-12-20 17:26:54 +03:00
Alexey Milovidov
113ff56384 Merge branch 'master' into twosixlabs-add_rate_function 2018-12-20 17:19:06 +03:00
Alexey Milovidov
2ae6b6414c Fixed error in 'compressor' tool: the 'level' parameter wasn't working #1345 2018-12-20 17:16:07 +03:00
zhang2014
263de501f5 add test & use isRepresentedByNumber 2018-12-20 22:08:17 +08:00
Nikolai Kochetov
4e58b62b0c Added LowCardinality support for specialized aggregation. 2018-12-20 16:28:20 +03:00
Alexey Milovidov
7c5cff2dd4 Renamed test #3350 2018-12-20 16:23:49 +03:00
alesapin
0ae14be8d2 Fix codes 2018-12-20 13:44:20 +03:00
alesapin
04902c569a Non effective, but working code 2018-12-20 13:27:38 +03:00
proller
bd17982224 Fix clang build 2018-12-20 12:54:28 +03:00
Ivan Blinkov
f63aa0eb3b Support MySQL-style syntax for DATE_ADD and similar functions 2018-12-20 11:22:24 +03:00
zhang2014
dc61a73a6e Fixed convert function monotonic failure when string data type 2018-12-20 10:04:30 +08:00
Sergey V. Galtsev
fb5dbb7959 Do not require the server to fail to start in the test. 2018-12-20 01:50:05 +03:00
Sergey V. Galtsev
a2042d60bf Resolve conflict with upstream. 2018-12-20 00:16:44 +03:00
Sergey V. Galtsev
81eeaec7fe Cleanup test. 2018-12-20 00:12:06 +03:00
Sergey V. Galtsev
acb8cf1849 Fix test. 2018-12-19 23:29:52 +03:00
proller
6869771ae4 Fix includes 2018-12-19 20:57:51 +03:00
proller
fdd22ad187 Fix includes 2018-12-19 20:56:58 +03:00
Nikolai Kochetov
4eb7a820d6 Fix style 2018-12-19 20:54:46 +03:00
alesapin
512fe3c854 Refactoring (sanitizer failure) 2018-12-19 20:20:18 +03:00
Nikolai Kochetov
0f8f5836fb Fix build. 2018-12-19 19:55:01 +03:00
Nikolai Kochetov
78321a04a1 Added low_cardinality_allow_in_native_format setting. 2018-12-19 19:47:30 +03:00
Alexey Milovidov
2f9ead4548 Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-19 19:18:56 +03:00
alexey-milovidov
f05bf6c046
Merge pull request #3873 from s-mx/send_logs_level2
Fix strange behavior of send_logs_level setting.
2018-12-19 19:18:02 +03:00
alexey-milovidov
ca75d18414
Merge pull request #3875 from abyss7/issue-3591
Treat Enums as Ints inside If() function
2018-12-19 18:30:09 +03:00
Alexey Milovidov
92499c725d Fixed test #3811 2018-12-19 18:27:57 +03:00
Ivan Blinkov
24a0b3a53e Additional function case insensitivity from #3704 2018-12-19 17:46:18 +03:00
Ivan Lezhankin
4c3af43ed3 Add test. 2018-12-19 17:36:55 +03:00
Ivan Lezhankin
937c0fb4a4 Treat Enum* types as Int* inside If() function. 2018-12-19 17:02:26 +03:00
Ivan
37345468b3
Explicitly include <optional> for clang-6.0 2018-12-19 16:57:55 +03:00
Sabyanin Maxim
ea27ec463e add SettingLogsLevel 2018-12-19 16:20:41 +03:00
chertus
7e6a39f623 Merge branch 'master' into joins 2018-12-19 16:14:17 +03:00
chertus
cbf3c34cf3 minor improvement in ExpressionAnalyzer + array join 2018-12-19 16:13:51 +03:00
Alexey Milovidov
b7ce79c423 Miscellaneous [#CLICKHOUSE-2] 2018-12-19 16:11:06 +03:00
Ivan Lezhankin
b9440fe99d Another minor refactoring. 2018-12-19 15:38:13 +03:00
Ivan Blinkov
0352c5a57c Introduce DATE_ADD/DATE_SUB/TIMESTAMP_ADD/TIMESTAMP_SUB #3705 2018-12-19 14:37:14 +03:00
Ivan Blinkov
f88b497555 Introduce common parser for interval kind names and use it for DATE_DIFF, EXTRACT and INTERVAL (allows to use same set of aliases in them) 2018-12-19 13:27:07 +03:00
Ivan Blinkov
0b79053afd remove accidental file duplicate 2018-12-19 12:05:04 +03:00
Ivan Blinkov
714bd5b88a Add lost zero byte in regexpQuoteMeta 2018-12-19 12:02:59 +03:00
Alexey Milovidov
2874061410 Fix use after free in arrayEnumerate [#CLICKHOUSE-2] 2018-12-19 07:21:23 +03:00
Alexey Milovidov
68e0af176e Fix use after free in arrayEnumerate [#CLICKHOUSE-2] 2018-12-19 06:53:09 +03:00
Alexey Milovidov
8889f0859a Fixed typo [#CLICKHOUSE-2] 2018-12-19 06:43:37 +03:00
Alexey Milovidov
36836faf62 Full support for Decimal #3721 2018-12-19 05:43:09 +03:00
Alexey Milovidov
689de0289f Added performance test #3721 2018-12-19 05:37:20 +03:00
Alexey Milovidov
9c23556cb0 Basic implementation for Decimal #3721 2018-12-19 05:11:31 +03:00
Alexey Milovidov
8e83a3c4ef Merge branch 'persiyanov-feature/roundDown-function' 2018-12-19 04:30:53 +03:00
Alexey Milovidov
4a6c25e65d Merging #3721; Added a test 2018-12-19 04:30:32 +03:00
Alexey Milovidov
b9a68fbe93 Merging #3721; Added a test 2018-12-19 04:29:40 +03:00
Alexey Milovidov
cf68f08099 Merge branch 'feature/roundDown-function' of https://github.com/persiyanov/ClickHouse into persiyanov-feature/roundDown-function 2018-12-19 03:29:21 +03:00
alexey-milovidov
92bb4471df
Merge pull request #3865 from abyss7/issue-3590
ISSUE-3590: Forbid using aggregate functions inside scalar subqueries
2018-12-19 03:19:45 +03:00
alexey-milovidov
c47dfb064e
Update ExecuteScalarSubqueriesVisitor.cpp 2018-12-19 03:19:31 +03:00
Alexey Milovidov
d5d1c34017 Merging #3811 2018-12-18 23:24:16 +03:00
Alexey Milovidov
6a779661c8 Merge branch 'java-hash' of https://github.com/shangshujie365/ClickHouse into shangshujie365-java-hash 2018-12-18 23:04:32 +03:00
Ivan Lezhankin
617082f444 ISSUE-3590: Forbid using aggregate functions inside scalar subqueries 2018-12-18 21:43:06 +03:00
chertus
f992f0a9a0 better check when rewrites needed 2018-12-18 21:28:02 +03:00
proller
b213ee5e5d
Fix macos build (#3863) 2018-12-18 20:41:03 +03:00
Ivan Blinkov
c5cb1573b5 One more kind of aliases for DATE_DIFF 2018-12-18 18:47:27 +03:00
Ivan Blinkov
a378b919af Add a bunch of aliases to DATE_DIFF interval names 2018-12-18 18:28:13 +03:00
alesapin
9b0d47c0c3 Add zstd params validation 2018-12-18 18:00:51 +03:00
alesapin
bc0e0c220e Add level test 2018-12-18 17:43:15 +03:00
alesapin
314fbbd71f Remove some debug output 2018-12-18 17:41:58 +03:00
Ivan Blinkov
5abfcfcd48 Support proper syntax for dateDiff 2018-12-18 17:40:30 +03:00
alesapin
3d0da644f1 one more test 2018-12-18 17:37:55 +03:00
alesapin
60456eb742 More tests on compression codecs 2018-12-18 17:34:18 +03:00
Ivan Blinkov
e73bef119c restore accidentally removed function registration 2018-12-18 17:31:03 +03:00
proller
c63ca042ba
Fix macos build (#3861) 2018-12-18 16:37:00 +03:00
alesapin
bb4eb06bb6 Fix strange logic 2018-12-18 16:30:22 +03:00
chertus
ba91920b19 Merge branch 'master' into joins 2018-12-18 16:26:28 +03:00
chertus
8720d3b937 remove stale code 2018-12-18 16:26:04 +03:00
Ivan Blinkov
d59b7379c9 fix style issues 2018-12-18 16:19:23 +03:00
Ivan Blinkov
d7667ffe95 fix gcc build issue 2018-12-18 16:18:30 +03:00
Ivan Blinkov
362948e891 Introduce quarter interval kind as 3 months (in preparation for #3705) 2018-12-18 16:16:48 +03:00
alesapin
fd49cc3c34 Simpliest codec multiple works 2018-12-18 16:08:22 +03:00
alesapin
6fe01af829 Merge branch 'master' into custom_compression_codecs 2018-12-18 14:06:11 +03:00
Ivan Blinkov
5caab32340 simplify whitespace_mask creation 2018-12-18 11:30:25 +03:00
Alexey Milovidov
d1237afdb7 Miscellaneous [#CLICKHOUSE-2] 2018-12-18 04:26:12 +03:00
alexey-milovidov
467751b692
Merge pull request #3856 from proller/fix10
Macos fix
2018-12-18 03:33:04 +03:00
alexey-milovidov
3efb01b3f8
Merge pull request #3857 from yandex/fix_odbc_bridge
Do not log from odbc-bridge when there is no console
2018-12-18 03:26:46 +03:00
Ivan Blinkov
93d4303922 minor trim test improvements 2018-12-17 23:20:25 +03:00
alesapin
bb1760c468 Remove idiotic if 2018-12-17 23:11:19 +03:00
Ivan Blinkov
b7566a8d4d Add manual implementation of trim base case (without character override) 2018-12-17 23:07:31 +03:00
chertus
9ef314aaaf SemanticSelectQuery CLICKHOUSE-3996 2018-12-17 22:30:08 +03:00
Ivan Lezhankin
8c8dc333e5 Fix unavailable shard's host:port for testing. 2018-12-17 21:06:50 +03:00
proller
8726f1eae3 Merge remote-tracking branch 'upstream/master' into fix10 2018-12-17 20:59:23 +03:00
proller
b1234b86c3 Macos fix 2018-12-17 20:59:10 +03:00
Daniel Dao
9a676329c2
Fix simple typo in ClusterCopier
Signed-off-by: Daniel Dao <dqminh89@gmail.com>
2018-12-17 16:45:44 +00:00
Ivan Lezhankin
1a539b3a6d Merge remote-tracking branch 'upstream/master' into issue-3592 2018-12-17 19:30:20 +03:00
chertus
b38f805097 JoinToSubqueryTransformVisitor CLICKHOUSE-3996 2018-12-17 19:22:28 +03:00
alexey-milovidov
14df9c76aa
Merge pull request #3837 from reflection/rollup_with_having
Ensure ROLLUP and CUBE respect HAVING (no change to TOTALS)
2018-12-17 18:06:26 +03:00
Ivan Lezhankin
6df757c6f7 Refactor constant folding and make it reusable for primary_key_expr 2018-12-17 17:59:01 +03:00
proller
3a9bd8a773 Fix macos build 2018-12-17 17:10:23 +03:00
alesapin
36a6121f75 Merge branch 'master' into custom_compression_codecs 2018-12-17 12:56:21 +03:00
alesapin
436845ff7e Debuging codec multiple 2018-12-17 11:31:59 +03:00
Samuel Chou
c465bd8d2b Fix rollup_with_having test 2018-12-16 23:55:04 -08:00
Samuel Chou
fcde47b45e Ensure ROLLUP and CUBE respect HAVING (no change to TOTALS) 2018-12-14 22:27:40 -08:00
Alexey Milovidov
af31ff24b9 Better code; added a test #3835 2018-12-14 23:21:47 +03:00
alexey-milovidov
dd8c947122
Merge pull request #3836 from nightweb/3835-add-with-totals-support
#3835 Add totals row for WITH TOTALS query
2018-12-14 22:34:01 +03:00
alexey-milovidov
b6feafea41
Update ODBCDriver2BlockOutputStream.cpp 2018-12-14 22:31:38 +03:00
alexey-milovidov
7380abf502
Merge pull request #3021 from yandex/ubsan-fixes-3
UBSan fixes, part 2
2018-12-14 22:29:47 +03:00
alexey-milovidov
3a2c85a06c
Merge pull request #3717 from amosbird/arrayjoin
Support unaligned array join.
2018-12-14 21:12:24 +03:00
alexey-milovidov
120e6b54eb
Update Settings.h 2018-12-14 21:12:01 +03:00
Alexey Milovidov
cd233cef17 Fixed typo [#CLICKHOUSE-2] 2018-12-14 21:06:10 +03:00
alexey-milovidov
c1a2cb7abb
Update ColumnVector.h 2018-12-14 20:54:45 +03:00
alexey-milovidov
6d27777b19
Merge branch 'master' into ubsan-fixes-3 2018-12-14 20:52:54 +03:00
Alexey Milovidov
c39a19c126 Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-14 20:50:23 +03:00
Alexey Milovidov
21c3a3d9e2 UBSan fixes #3021 2018-12-14 20:50:10 +03:00
Max
4c145a9535 #3835 Add totals row for WITH TOTALS query 2018-12-14 20:43:04 +03:00
KochetovNicolai
e4fe6a8e63 Updated test. (#3832)
* Updated test.

* Updated test.

* Updated test.

* Updated test.

* Updated test.
2018-12-14 20:32:25 +03:00
alexey-milovidov
eea8e2bbc2
Merge pull request #3833 from yandex/remove-shard-by-hash
Removed table function "shardByHash" because it has no use
2018-12-14 20:29:03 +03:00
alexey-milovidov
d4c476e0bb
Merge pull request #2609 from yandex/background-processing-pool-backoff
Improved efficiency with a huge number of MergeTree tables.
2018-12-14 20:28:22 +03:00
robot-clickhouse
6b536b2bc7 Auto version update to [18.16.0] [54412] 2018-12-14 20:26:46 +03:00
Alexey Milovidov
54071d6266 Removed table function "shardByHash" because it has no use [#CLICKHOUSE-2] 2018-12-14 19:33:52 +03:00
Alexey Milovidov
9e6d835137 Preparations #2609 2018-12-14 19:17:09 +03:00
Alexey Milovidov
41ed104894 Preparations #2609 2018-12-14 19:12:12 +03:00
Alexey Milovidov
e9a3c93ef0 Merged with master #2609 2018-12-14 18:39:48 +03:00
alexey-milovidov
7cc867de0a
Merge branch 'master' into background-processing-pool-backoff 2018-12-14 17:41:55 +03:00
robot-clickhouse
9c36280711 Auto version update to [18.15.0] [54411] 2018-12-14 16:47:45 +03:00
proller
add14ee00b Fix unsuccessful run of StorageSystemContributors on release 2018-12-14 16:44:10 +03:00
alesapin
0f29bff8da Style 2018-12-14 16:28:34 +03:00
alesapin
8a95eb9dc1 More tests for parser 2018-12-14 16:27:35 +03:00
alexey-milovidov
cad86db065
Merge pull request #3823 from yandex/fix-column-unique-index
Fix column unique index [WIP]
2018-12-14 16:18:17 +03:00
Ivan Blinkov
9dca1e3ca2 Test for left/right with cut size larger than input 2018-12-14 14:45:45 +03:00
Ivan Blinkov
2279058f0d Simplify right(expr, length) function to be just an alias to substring(expr, -length) 2018-12-14 14:42:49 +03:00
Nikolai Kochetov
2cd3bb5ff7 Fix tests. 2018-12-14 14:36:08 +03:00
alesapin
cc229ac9cc Remove strange test 2018-12-14 14:32:23 +03:00
alesapin
3370a0a4fe Fix order of calls 2018-12-14 14:29:12 +03:00
Ivan Blinkov
ebc0a165f4 Add perf test for right function 2018-12-14 12:32:24 +03:00
Ivan Blinkov
649716bea1 fix incorrect escaping 2018-12-14 12:26:55 +03:00
Ivan Blinkov
7b4b768195 Some perf tests for trim functions 2018-12-14 12:20:22 +03:00
Ivan Blinkov
0753cfe81b Merge FunctionRegexpQuoteMeta.h into regexpQuoteMeta.cpp + add comment about suboptimal library call 2018-12-14 11:43:20 +03:00
alesapin
29e2bbaa94 Merge remote-tracking branch 'origin' into custom_compression_codecs 2018-12-14 11:24:23 +03:00
shangshujie
c8111704fb add java hash code source url 2018-12-14 14:12:23 +08:00
Nikolai Kochetov
ec59f65a1e Update ReverseIndex. Added tests. 2018-12-13 22:02:28 +03:00
alesapin
46c78c093b Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-13 20:41:27 +03:00
alesapin
b00669e012 Print stacktrace on client if corresponding option specified 2018-12-13 20:41:13 +03:00
alesapin
96da3195f5 Rewrite strange logic to another strange logic 2018-12-13 20:39:16 +03:00
Ivan Blinkov
69f2667d63 fix style errors 2018-12-13 19:41:56 +03:00
alesapin
5c823d519f Remove debug 2018-12-13 19:23:06 +03:00
alesapin
d7bc4ae115 Seems like first simpliest working code 2018-12-13 19:21:08 +03:00
alesapin
a492d0f6bf Seems like working parser 2018-12-13 18:26:28 +03:00
Ivan Blinkov
180311b42b Introduce regexpQuoteMeta function to properly handle regexp special chars in TRIM #3714 2018-12-13 15:58:00 +03:00
Ivan Blinkov
034265f044 Introduce TRIM/LTRIM/RTRIM functions #3714 2018-12-13 14:50:37 +03:00
alexey-milovidov
7898caed19
Merge pull request #3800 from edonin/master
Better management of DateTime partitionning #3786
2018-12-13 14:05:19 +03:00
shangshujie
e9cabc818d fix indention 2018-12-13 18:36:31 +08:00
alesapin
5c30bd2384 Compilable code 2018-12-13 13:25:11 +03:00
Ivan Blinkov
3209ac84d0 Rewrite LEFT and RIGHT functions to corresponding SUBSTRING calls #3712 2018-12-13 12:34:12 +03:00
Emmanuel Donin de Rosière
61adf58ac3 Better management of DateTime partitionning yandex#3786
issue with reference file for test
it is due to partition naming that seems to have changed recently.
2018-12-13 07:08:56 +01:00
shangshujie
5de1b01d20 fix indention 2018-12-13 12:47:00 +08:00
zhang2014
6d0c4eaf89 ISSUES-838 add lz4、none、zstd codec 2018-12-13 12:10:34 +08:00
alexey-milovidov
9eca78e764
Merge pull request #3819 from yandex/fix-tehran-time
Fix daylight saving time conversion if it was at midnight and clock was adjusted backwards.
2018-12-13 00:06:50 +03:00
Emmanuel Donin de Rosière
87791a2484 Better management of DateTime partitionning yandex#3786
Stills issue on tests reference
2018-12-12 21:36:13 +01:00
alexey-milovidov
611437c4e3
Update 00802_daylight_saving_time_shift_backwards_at_midnight.sql 2018-12-12 22:04:24 +03:00
Emmanuel Donin de Rosière
ed57179f17 Better management of DateTime partitionning yandex#3786
issue with reference file for tests
2018-12-12 19:18:21 +01:00
Emmanuel Donin de Rosière
6cf4bdedf9 Better management of DateTime partitionning yandex#3786
Adding test queries
2018-12-12 17:36:54 +01:00
Amos Bird
86f462acff Support unaligned array join
For left ARRAY JOIN, expand to the greatest size. If all sizes are zero,
resize to one which is the same as the old behavior, i.e. emptyArrayToSingle

For non-left ARRAY JOIN, expand to the greatest size but keep empty if all sizes are zero.
2018-12-12 22:08:28 +08:00
Emmanuel Donin de Rosière
7d7acb92da Merge remote-tracking branch 'upstream/master' 2018-12-12 15:02:52 +01:00
Alexey Milovidov
d02d79118c Added comment #3819 2018-12-12 16:32:14 +03:00
Alexey Milovidov
b250a95c48 Added test #3220 2018-12-12 16:29:58 +03:00
alesapin
282b303a1c Link libglibc-compatibility to dbms at last position (#3816)
* Link libglibc-compatibility to dbms at last position

* Don't replace getrandom if it doesn't exists in libc
2018-12-12 15:51:40 +03:00
Alexey Milovidov
626c085a06 Removed garbage #3653 2018-12-11 22:00:13 +03:00
shangshujie
5de9577ecd add test function 2018-12-11 18:29:59 +08:00
shangshujie
ccdaf6a31b add java string hash, hive string hash, for compatible with java world 2018-12-11 16:41:23 +08:00
Sergey V. Galtsev
f9869b7d7e Fix default buffer_size for getUserName(). Use real sysconf(_SC_GETPW_R_SIZE_MAX) value. 2018-12-11 02:36:20 +03:00
Sergey V. Galtsev
c9b984285d Fail on user mismatch under root only. Just warn under non root user. 2018-12-11 02:32:21 +03:00
Sergey V. Galtsev
30acd5000e Fix bad merge. 2018-12-11 02:21:03 +03:00
Sergey V. Galtsev
df9833fd3f Remove no longer used error code. 2018-12-11 02:18:16 +03:00
alexey-milovidov
7af621f6f7
Merge pull request #3728 from amosbird/join
Versatile StorageJoin
2018-12-10 23:16:53 +03:00
alexey-milovidov
3877aad6ef
Merge pull request #3773 from 4ertus2/joins
InDepthNodeVisitor for AST traversal
2018-12-10 22:44:22 +03:00
alexey-milovidov
fb15713979
Merge pull request #3794 from amosbird/aba
Guard `force_restore_data_flag_file` removal
2018-12-10 21:56:45 +03:00
alexey-milovidov
58c9746a91
Update loadMetadata.cpp 2018-12-10 21:56:37 +03:00
alexey-milovidov
a083e6bc64
Merge pull request #3799 from yandex/low-cardinality-join
Low cardinality join
2018-12-10 21:46:42 +03:00
Alexey Milovidov
76167f382a Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-10 21:19:46 +03:00
Alexey Milovidov
22aa593d6b Fixed global variable buffer read overflow [#CLICKHOUSE-4191] 2018-12-10 21:19:37 +03:00
alexey-milovidov
cea269883c
Merge pull request #3803 from yandex/low-cardinality-native-format-conversion-2
LowCardinality support for old clients, part 2
2018-12-10 21:03:43 +03:00
alexey-milovidov
3be02d5214
Merge pull request #3807 from amosbird/nitfix
Fix copy-paste error.
2018-12-10 20:52:08 +03:00
KochetovNicolai
635b16ac4b
Update MergeTreeDataPart.cpp
Skip size check for LowCardinality column file.
2018-12-10 20:47:18 +03:00
Sergey V. Galtsev
93df4306af Fix style. 2018-12-10 20:42:33 +03:00
Amos Bird
197d73d5bc Fix copy-paste error. 2018-12-11 01:31:10 +08:00
chertus
3dd36cee14 Merge branch 'master' into joins 2018-12-10 19:20:45 +03:00
alesapin
77c884b7ff Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-10 19:07:47 +03:00
alesapin
0612910277 Remove redundant container 2018-12-10 19:07:31 +03:00
Alexey Milovidov
aec8c149dc Fixed test [#CLICKHOUSE-4191] 2018-12-10 18:59:56 +03:00
alexey-milovidov
5152e2b8fa
Merge pull request #2658 from yandex/issue-3578
CLICKHOUSE-3578 apply column defaults for semistructured input formats
2018-12-10 18:56:22 +03:00
alexey-milovidov
fdae3eefa3
Merge pull request #3805 from proller/fix4
clang-format of dbms/src/Dictionaries/*
2018-12-10 18:55:28 +03:00
proller
5e89894b98 Fix style 2018-12-10 18:50:58 +03:00
alexey-milovidov
ce2f3fca50
Merge pull request #3804 from yandex/missing-sql-compatibility-functions
Support SUBSTRING(expr FROM start FOR length)
2018-12-10 18:41:03 +03:00
proller
c9e98c8deb clang-format of dbms/src/Dictionaries/* 2018-12-10 18:25:45 +03:00
chertus
9f9bf0cb1b ArrayJoinedColumnsVisitor via InDepthNodeVisitor 2018-12-10 16:49:36 +03:00
chertus
49d80bf8f5 ExecuteScalarSubqueriesVisitor (move code from h to cpp) 2018-12-10 16:19:09 +03:00
chertus
9236e94e1b ExecuteScalarSubqueriesVisitor via InDepthNodeVisitor 2018-12-10 16:02:45 +03:00
Ivan Blinkov
6a90abc543 Support SUBSTRING(expr FROM start FOR length) 2018-12-10 15:54:02 +03:00
Nikolai Kochetov
1a6127dce4 Remove LowCardinality from NativeBlockOutputStream types for old clients. 2018-12-10 15:09:37 +03:00
Nikolai Kochetov
723932930d Added test with low cardinality join. 2018-12-10 14:21:29 +03:00
chertus
66d73025d7 fix RequiredSourceColumnsMatcher lambda 2018-12-10 13:55:27 +03:00
Emmanuel Donin de Rosière
a8c2e59cf6 Merge remote-tracking branch 'upstream/master' 2018-12-10 11:31:13 +01:00
Nikolai Kochetov
e4fd13f237 Remove LowCardinaity for joined keys. 2018-12-10 13:23:45 +03:00
Nikolai Kochetov
61cd6fe2d3 Remove LowCardinaity for joined keys. 2018-12-10 13:21:32 +03:00
Emmanuel Donin de Rosière
982cd749be Better management of DateTime partitionning #3786
Adding min_time and max_date in system.parts table
2018-12-10 11:20:19 +01:00
alesapin
0466f6beaf Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-10 12:41:10 +03:00
alesapin
0901694b15 Update integration tests image 2018-12-10 12:40:57 +03:00
Sergey V. Galtsev
42de08f3b9 Move euid check back to Server.cpp.
Use getpwnam_r instead of getpwnam.
Fix style.
2018-12-10 01:15:59 +03:00
Sergey V. Galtsev
52d18ee7c6 Merge branch 'master' of https://github.com/yandex/clickhouse into match-process-euid-against-data-owner 2018-12-09 22:46:24 +03:00
Amos Bird
6bc30f225e Guard force_restore_data_flag_file removal
resemble `force_drop_table` file
2018-12-09 23:11:46 +08:00
chertus
0c49c19592 fix style 2018-12-08 01:02:33 +03:00
alexey-milovidov
0fdb3b9628
Merge branch 'master' into issue-3578 2018-12-07 23:53:34 +03:00
alexey-milovidov
0b4f0ca7d5
Merge pull request #3744 from yandex/low-cardinality-nullable-group-by
LowCardinality optimization for single nullable column.
2018-12-07 23:32:27 +03:00
alexey-milovidov
92ab759ef6
Update Aggregator.h 2018-12-07 23:31:59 +03:00
Alexey Milovidov
ab8ac40682 Fixed test (added normal case that was missed) [#CLICKHOUSE-2] 2018-12-07 23:13:44 +03:00
proller
799edcef78 CLICKHOUSE-4189 Fix segfault (#3788)
* CLICKHOUSE-4189 Fix segfault

* Update ExpressionActions.cpp

* Update ExpressionActions.cpp
2018-12-07 23:05:02 +03:00
KochetovNicolai
431cff1613
Update NativeBlockInputStream.cpp
Fix type for LowCardinality inserts.
2018-12-07 20:17:50 +03:00
chertus
2afe664d67 RequiredSourceColumnsVisitor via InDepthNodeVisitor 2018-12-07 19:28:20 +03:00
chertus
31c629bf55 GlobalSubqueriesMatcher via InDepthNodeVisitor 2018-12-07 18:36:54 +03:00
chertus
abffefc830 ExternalTablesVisitor via InDepthNodeVisitor 2018-12-07 18:14:50 +03:00
Sergey V. Galtsev
51b6dd67b0 Match the process' effective user id against the data owner at the server startup. 2018-12-07 17:56:59 +03:00
chertus
e26c3327cf fix lost AST chenges in InDepthNodeVisitor 2018-12-07 17:24:47 +03:00
alesapin
21f8a86635 Merge branch 'chenxing-xc-master' 2018-12-07 17:13:11 +03:00
alesapin
dbefb66691 Add kill docker by Ctrl+C, abs path and improve readme 2018-12-07 17:08:25 +03:00
chertus
75af882cf3 fix AST debug print with underline symbol 2018-12-07 15:34:40 +03:00
alesapin
80b49e4c0a Add integration test, put dependent libs to contrib, slightly refine
code.
2018-12-07 14:41:24 +03:00