Commit Graph

119682 Commits

Author SHA1 Message Date
Alexey Milovidov
5fd378ecd2
Merge branch 'master' into test/full_join_null_pk 2023-07-17 20:35:01 +03:00
Alexander Sapin
2db14e36b4 Fix build 2023-07-17 19:15:07 +02:00
Kruglov Pavel
d3d0f101f7
Merge branch 'master' into full-filename-placeholder 2023-07-17 19:14:10 +02:00
Robert Schulze
1dbc88630d
Cosmetics 2023-07-17 17:10:08 +00:00
Nikita Mikhaylov
ee0bbc0e54
Merge branch 'master' into headers-blacklist 2023-07-17 19:08:52 +02:00
Alexander Sapin
bfbf9f292e Fix 2023-07-17 19:03:04 +02:00
Alexander Sapin
b70349852c Better message on timeout and fix test 2023-07-17 19:02:29 +02:00
Alexey Milovidov
9f45513acf
Merge pull request #52173 from ClickHouse/fix-slow-test-02317_distinct_in_order_optimization
Fix slow test `02317_distinct_in_order_optimization`
2023-07-17 19:57:41 +03:00
Alexander Sapin
918e3f7712 Fix flaky test 2023-07-17 18:41:12 +02:00
Kruglov Pavel
2793305a71
Merge pull request #51825 from ucasfl/schema
Fix use_structure_from_insertion_table_in_table_functions does not work with materialized and alias columns
2023-07-17 18:25:54 +02:00
Nikita Mikhaylov
d4c8383627
Merge pull request #52216 from ClickHouse/revert-51736-oss-fuzz-fixes
Revert "Fixed several issues found by OSS-Fuzz"
2023-07-17 17:19:18 +02:00
avogar
2abd69d921 Fix data race on Connection::setAsyncCallback 2023-07-17 15:14:54 +00:00
Antonio Andelic
bfe349a7e4
Merge pull request #52189 from ClickHouse/fix-test_multiple_disks
Fix `test_multiple_disks/test.py::test_start_stop_moves`
2023-07-17 16:28:02 +02:00
Nikita Mikhaylov
2a2ebb1f31 Bump 2023-07-17 14:26:11 +00:00
Antonio Andelic
51f0089457
Merge branch 'master' into fix-test_multiple_disks 2023-07-17 16:25:06 +02:00
vdimir
5de1cfee7d
Merge pull request #51735 from arenadata/ADQM-976 2023-07-17 16:24:11 +02:00
Nikita Mikhaylov
9a30aaa9aa
Revert "Fixed several issues found by OSS-Fuzz" 2023-07-17 16:14:58 +02:00
Alexander Sapin
2ad1109dbd Avoid zero copy replication more agressively 2023-07-17 16:03:39 +02:00
Dmitry Novik
fc05187e8a Add dependencies to FinishCheck 2023-07-17 13:50:21 +00:00
Robert Schulze
8f8cb5eb82
Update cmake/limit_jobs.cmake
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2023-07-17 15:48:12 +02:00
Dmitry Novik
dd74ce3e1c Add integration tests check with analyzer to master 2023-07-17 13:44:52 +00:00
Andrey Zvonov
d339c22a2f
Merge branch 'master' into zvonand-issue-49290 2023-07-17 16:43:15 +03:00
Han Fei
68751b88f3 change comments 2023-07-17 15:01:48 +02:00
Val Doroshchuk
4da0782e55 MaterializedMySQL: Add tests to parse db and table names from DDL 2023-07-17 15:01:06 +02:00
Han Fei
b75c4ae2e5 Merge branch 'master' into hanfei/support-insert-token 2023-07-17 14:57:48 +02:00
Antonio Andelic
db1b172770
Merge pull request #52201 from ClickHouse/fix-flaky-checks
Fix  `Integration tests flaky check (asan)`
2023-07-17 14:24:05 +02:00
robot-clickhouse
71e8465663 Automatic style fix 2023-07-17 12:09:36 +00:00
kevinyhzou
355faa4251 ci fix 2023-07-17 20:08:32 +08:00
Robert Schulze
67e9de14de
Merge pull request #51637 from ClibMouse/feature/grouparray-aggregate-function-big-endian
Implement endianness-independent serialization
2023-07-17 14:07:13 +02:00
Robert Schulze
a2e63404b3
Further simplify logic 2023-07-17 12:01:41 +00:00
Alexander Sapin
2993cf3cba Fix flaky test test_lost_part 2023-07-17 14:01:31 +02:00
Antonio Andelic
152f5527a9 Remove wrong assert 2023-07-17 11:58:22 +00:00
Robert Schulze
96c399ff7b
Simplify a bit further 2023-07-17 11:58:18 +00:00
Robert Schulze
8f1e56167c
NUMBER_OF_TOTAL_CORES is on all platforms != 0 2023-07-17 11:53:12 +00:00
Robert Schulze
7204f70547
cmake_host_system_information provides TOTAL_PHYSICAL_MEMORY on all platforms, including FreeBSD 2023-07-17 11:52:23 +00:00
robot-ch-test-poll2
7f960c2379
Merge pull request #51160 from Algunenano/async_to_query_log
Log async insert flush queries into to system.query_log and system.processes
2023-07-17 13:49:22 +02:00
Kseniia Sumarokova
a110c87985
Update 02240_filesystem_cache_bypass_cache_threshold.reference 2023-07-17 13:46:04 +02:00
Nikita Mikhaylov
fa137f283c
Merge pull request #51736 from ClickHouse/oss-fuzz-fixes
Fixed several issues found by OSS-Fuzz
2023-07-17 13:44:48 +02:00
Nikita Mikhaylov
d04f39370a
Merge branch 'master' into oss-fuzz-fixes 2023-07-17 13:41:54 +02:00
Robert Schulze
10c15a6548
Refactor limit_jobs.cmake 2023-07-17 11:37:34 +00:00
robot-ch-test-poll1
89a33c5879
Merge pull request #52176 from FFFFFFFHHHHHHH/add_length_alias
Add OCTET_LENGTH as an alias to length
2023-07-17 13:34:01 +02:00
Yatsishin Ilya
5b853c1958 Make ASTFuzzer happy 2023-07-17 11:32:22 +00:00
Azat Khuzhin
1fb7605fb4 Fix self extracting binaries under qemu linux-user (qemu-$ARCH-static)
The problem was that the decompressor uses realpath(/proc/self/exe)
instead of readlink(/proc/self/exe), while realpath() does lots of
trickerly [1] which leads to bypassing qemu linux-user override [2] of
/proc/self/exe to the executable with with it had been called -- and
the reason for this is that the getpid() after unshare returns 1, while
reading /proc/self returns the pid that was before unshare (from the
chroot) [3].

  [1]: 4290aed051/stdlib/canonicalize.c (L223)
  [2]: ed8ad9728a/linux-user/syscall.c (L8634)
  [3]: https://gist.github.com/azat/fcbd8b6c26afd505ae5f3387fc15f0e2

But note, that even after this patch qemu without binfmt will not work,
due to internally the code calls execv() while qemu does not handle it
(see [4]).

  [4]: https://patchwork.kernel.org/project/qemu-devel/patch/1453091602-21843-1-git-send-email-petrosagg@gmail.com/

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-17 13:10:40 +02:00
Azat Khuzhin
16165d9498 Improve error messages for decompressor
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-17 13:10:40 +02:00
Azat Khuzhin
c374653c7b Revert "Merge pull request #52138 from azat/decompressor-inode"
This reverts commit 6524031348, reversing
changes made to 9bf114f9a3.

This was not a good idea, since the underlying problem was that
`/proc/self/exe` was pointing to `qemu-$ARCH-static` (because the code
uses realpath() over normal interface readlink(), which is not caught by
the qemu linux-user).

And this means that later, it will try to overwrite incorrect binary and
then execute some garbage.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-17 13:10:29 +02:00
Alexander Sapin
477b8f04b6 Fix sticky mutations test (and extremely rare race condition) 2023-07-17 13:09:34 +02:00
Kruglov Pavel
df363f444e
Merge pull request #51767 from arenadata/Support-range-nullable
Support for function range of Nullable argument
2023-07-17 12:52:19 +02:00
Ilya Yatsishin
65eb937f68
Merge pull request #51765 from arenadata/ADQM-974
Allow toUInt128() for UUIDs
2023-07-17 12:50:37 +02:00
Robert Schulze
9d7737ba09
Merge pull request #50076 from FFFFFFFHHHHHHH/jaccard_similarity
Add function arrayJaccardIndex
2023-07-17 12:22:24 +02:00
robot-ch-test-poll4
036fb1fc9b
Merge pull request #52041 from ClickHouse/docs-organize-user-profiles
Docs organize user setting profiles
2023-07-17 12:03:06 +02:00