Commit Graph

3241 Commits

Author SHA1 Message Date
Alexey Milovidov
84dddb8103 Merge branch 'master' into azat-jemalloc-MADV_DONTNEED-runtime-check 2020-12-20 22:38:54 +03:00
Alexey Milovidov
3d2f87cd9a New Year preparations 2020-12-20 16:25:46 +03:00
alexey-milovidov
af4c3956da
Merge pull request #17273 from zhang2014/fix/ISSUES-17244
ISSUES-17244 try fix indeterministic functions with predicate optimizer
2020-12-20 09:51:20 +03:00
alexey-milovidov
252fc733bd
Merge pull request #18214 from amosbird/fix-15651
Fix enum = Int8 in KeyCondition
2020-12-20 07:39:22 +03:00
Azat Khuzhin
e379b80d45 MADV_DONTNEED check in runtime for qemu (via patching jemalloc)
qemu does not support MADV_DONTNEED, and by not support it simply ignore
it (i.e. return 0 -- no error).

This issue has been "fixed" in #15590, however it just
terminates the process, and completely breaks clickhouse under qemu
(see also #15174).

But there is no need in such strong protection, we can stop using
madvise in jemalloc if MADV_DONTNEED does not work properly.
And this is what #18169 was tried to do (by override madvise), however
this will break sanitizers, at least TSAN and UBSAN.
The problem there is that sanitizers initialization code uses madvise
(and there is no way to turn this off with TSAN_OPTIONS) and overwritten
madvise function will have sanitizers traits (__tsan_func_entry), while
TSAN is not ready for this, and eventually it SIGSEGV.
Interesting thing is that in the recent clang-12, madvise was replaced
with direct syscall [1].

  [1]: 9f8c4039f2

But it is better to make clickhouse compatible with clang < 12 too, so
instead of override madvise completely, the runtime check was moved into
the jemalloc code [2].

  [2]: https://github.com/ClickHouse-Extras/jemalloc/pull/1
2020-12-19 15:34:12 +03:00
Alexey Milovidov
231cce489d Add a test 2020-12-19 01:08:05 +03:00
Alexey Milovidov
ce32a55fd6 Preparation 2020-12-19 00:54:24 +03:00
Alexey Milovidov
93bf494108 Preparation 2020-12-19 00:19:28 +03:00
Anton Popov
07bc3579d0
Merge pull request #18219 from CurtizJ/add-test
Add test for fixed bug with skip indices
2020-12-18 23:11:17 +03:00
alexey-milovidov
03bc2d328a
Merge pull request #17726 from amosbird/querylog
Extensive information in system.query_log
2020-12-18 21:24:21 +03:00
Ivan
6d5912e633
Update query_test.py 2020-12-18 19:01:04 +03:00
Nikolai Kochetov
d7fc426458
Merge pull request #18216 from ClickHouse/fix-18137
Fix 18137
2020-12-18 18:49:02 +03:00
alexey-milovidov
34e4ace029
Merge pull request #17525 from ClickHouse/null-as-default-default
Attempt to make NULL as default by default
2020-12-18 18:00:34 +03:00
alexey-milovidov
7ec772f480
Merge pull request #18129 from ClickHouse/boringssl2
Port to BoringSSL (part 2)
2020-12-18 18:00:10 +03:00
Anton Popov
820e0cf877 add test for fixed bug 2020-12-18 16:41:47 +03:00
Ivan
57763e6867
Enable Pytest framework for stateless tests (#17902) 2020-12-18 16:26:11 +03:00
Nikolai Kochetov
8012951e77 Add test. 2020-12-18 11:34:20 +03:00
Amos Bird
78b0b9b4fb
fix enum int keycondition 2020-12-18 16:10:54 +08:00
Amos Bird
2a28c127eb
Better code for real 2020-12-18 14:13:59 +08:00
Amos Bird
272311f6bd
Extensive information in system.query_log 2020-12-18 14:13:58 +08:00
Alexey Milovidov
a0f7a12c4f Merge branch 'master' into null-as-default-default 2020-12-18 08:09:35 +03:00
alexey-milovidov
0d9519a0a2
Merge pull request #17567 from ClickHouse/insert_quorum_parallel-default
Insert quorum parallel by default
2020-12-18 08:08:26 +03:00
Alexey Milovidov
6c62301894 Merge branch 'master' of github.com:yandex/ClickHouse into boringssl2 2020-12-18 07:59:18 +03:00
Alexey Milovidov
1be41beca0 Merge branch 'master' into boringssl2 2020-12-18 05:59:30 +03:00
Nikita Mikhaylov
aa7793e38f
Merge pull request #18084 from nikitamikhaylov/fix-arcadia-third
Try to fix Arcadia
2020-12-18 01:54:42 +03:00
alexey-milovidov
6fc3ca8b7b
Merge pull request #16724 from kitaisreal/added-function-accurate-cast-or-null
Added function accurateCastOrNull, allow different types inside IN subquery
2020-12-18 00:45:27 +03:00
Vitaly Baranov
d9125a4822
Merge pull request #18014 from vitlibar/fix-showing-temporary-tables-in-system-tables
Fix showing temporary tables in system tables
2020-12-17 22:59:09 +03:00
Alexey Milovidov
e4433157e7 Merge branch 'master' into insert_quorum_parallel-default 2020-12-17 22:42:32 +03:00
Alexey Milovidov
3060743b9f Merge branch 'master' into boringssl2 2020-12-17 22:09:30 +03:00
alexey-milovidov
dd78c9dc75
Merge pull request #17566 from ClickHouse/relax-too-many-parts-1
Relax "Too many parts" threshold, part 1
2020-12-17 20:44:44 +03:00
Anton Popov
a77acd5aa7
Fix flaky test 2020-12-17 18:12:24 +03:00
hexiaoting
cb91d64fe7
Add new feature: limit length and offset setting (#17633)
Co-authored-by: Alexander Kazakov <Akazz@users.noreply.github.com>
2020-12-17 17:16:14 +03:00
Nikita Mikhaylov
0f3582883c
Merge pull request #18147 from kitaisreal/array-aggregation-big-integer-types-support
Added array aggregation big integer types support
2020-12-17 15:44:55 +03:00
Nikita Mikhaylov
d302685e72
Merge pull request #18172 from nikitamikhaylov/julian-day-msan
toModifiedJulianDayOrNull msan fix
2020-12-17 15:12:05 +03:00
tavplubix
7e73b6acd8
Merge pull request #17642 from filimonov/detach-permanently
DETACH TABLE PERMANENTLY
2020-12-17 14:26:51 +03:00
Kruglov Pavel
d82c23d5cf
Merge pull request #16853 from amosbird/ss
Add -SimpleState combinator
2020-12-17 14:00:05 +03:00
Vitaly Baranov
72df75fc50 Add tests. 2020-12-17 11:42:25 +03:00
Vitaly Baranov
af3ccb49f1 Show create query for temporary tables in system.tables 2020-12-17 11:42:25 +03:00
Vitaly Baranov
d7a3cc8c90 Don't show the "_temporary_and_external_tables" database in system tables
system.databases, system.tables, system.columns.
2020-12-17 11:42:25 +03:00
Alexey Milovidov
ce9767fc42 Remove obsolete and inefficient ciphers 2020-12-17 07:43:54 +03:00
alexey-milovidov
81c00a4e94
Merge pull request #18167 from ClickHouse/fix_checking_profile_settings_constraints
Fix `Unknown setting profile` error on attempt to set settings profile
2020-12-17 07:18:53 +03:00
nikitamikhaylov
db362e4585 done 2020-12-17 05:27:32 +03:00
Alexey Milovidov
7abc58526a Update test 2020-12-17 04:55:07 +03:00
Alexey Milovidov
6a7c73a7bd Merge branch 'master' into insert_quorum_parallel-default 2020-12-17 04:54:17 +03:00
Alexey Milovidov
b25f126569 Added a test 2020-12-17 04:52:27 +03:00
alexey-milovidov
37da513c36
Merge pull request #18136 from taiyang-li/explain_ast_nonselect_query
Explain ast support nonselect querys
2020-12-17 03:35:19 +03:00
alexey-milovidov
484f20f77d
Merge pull request #18140 from ClickHouse/fix_flaky_test
Trying to fix 00620_optimize_on_nonleader_test
2020-12-17 03:34:39 +03:00
alexey-milovidov
908784a0d9
Merge pull request #18148 from ClickHouse/suppress_error_in_test
Suppress error in 00993_system_parts_race_condition_drop_zookeeper
2020-12-17 03:32:10 +03:00
Alexander Tokmakov
76e73e4e8b fix 'Unknown setting profile' error 2020-12-16 23:49:56 +03:00
Maksim Kita
5a096a75b8 Fixed issues with average 2020-12-16 23:10:40 +03:00