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
kssenii
09d8ca0a40
Update
2023-07-17 11:30:21 +02:00
kssenii
9d645488c6
Merge remote-tracking branch 'upstream/master' into fix-assertions-4
2023-07-17 11:29:37 +02:00
kssenii
1e984da9e6
Fix
2023-07-17 11:26:58 +02:00
Val Doroshchuk
9d396f820a
Merge branch 'master' into disconnect-on-dtor
2023-07-17 10:58:43 +02:00
Antonio Andelic
dfc1cc13c8
Better oldest part selection
2023-07-17 08:57:22 +00:00
Sergei Trifonov
381ab07e1b
Merge pull request #51496 from yariks5s/add-index-bytes-to-system-parts
...
Add column primary_key_size to system.parts
2023-07-17 10:39:56 +02:00
Dmitry Kardymon
0353eb1f45
add timezone to datediff() to fix other bug
2023-07-17 05:05:33 +00:00
Alexey Milovidov
44929b7d28
Merge pull request #52154 from ClickHouse/fix-02497_storage_file_reader_selection
...
Fix test 02497_storage_file_reader_selection
2023-07-17 06:45:48 +03:00
FFFFFFFHHHHHHH
3df812f4f0
fix
2023-07-17 11:18:30 +08:00
FFFFFFFHHHHHHH
ebfc9c25f7
add test
2023-07-17 10:59:40 +08:00
FFFFFFFHHHHHHH
0cdb1d1466
add docs
2023-07-17 10:52:05 +08:00
Alexey Milovidov
7915ba253b
Better version
2023-07-17 04:49:04 +02:00
FFFFFFFHHHHHHH
1cebf03cab
add length alias
2023-07-17 10:41:18 +08:00
FFFFFFFHHHHHHH
0895e47629
Merge branch 'master' into jaccard_similarity
2023-07-17 10:33:10 +08:00
Alexey Milovidov
3aae818a77
Merge branch 'master' into fix-the-same-names-for-lift-up-functions-before-sorting
2023-07-17 03:21:33 +03:00
Alexey Milovidov
4e727cdb2a
Update liftUpFunctions.cpp
2023-07-17 03:21:24 +03:00
Alexey Milovidov
299149b682
Fix slow test 02317_distinct_in_order_optimization
2023-07-17 01:49:43 +02:00
Alexey Milovidov
34ec39234f
Fix crash in comparison functions due to incorrect query analysis
2023-07-17 01:40:02 +02:00
Alexey Milovidov
b6090600e2
Merge branch 'master' into add-test-41727
2023-07-17 01:35:00 +03:00
Alexey Milovidov
60908ac269
Merge pull request #51991 from ClickHouse/test-cleanup
...
Check that functional tests cleanup their tables
2023-07-17 01:33:54 +03:00
Alexey Milovidov
e6f71e3ad2
Fix error in groupArrayMovingSum
2023-07-17 00:30:53 +02:00
Alexey Milovidov
ace98464ae
Add a test
2023-07-17 00:12:37 +02:00
Alexey Milovidov
ac408d0b63
Add a check for hasToken
2023-07-17 00:10:42 +02:00
Alexey Milovidov
18bcbe400b
Remove unused headers
2023-07-16 23:26:21 +02:00
Alexey Milovidov
de879a6004
Add a test
2023-07-16 23:22:48 +02:00
Alexey Milovidov
422881ac2c
Fix logical error: cannot get name of not a column: Set
2023-07-16 23:21:30 +02:00
Alexey Milovidov
59ecdbd53e
Fix test 02497_storage_file_reader_selection
2023-07-16 22:30:04 +02:00
Dmitry Kardymon
1c34d75014
Add new lines
2023-07-16 18:21:10 +00:00
Dmitry Kardymon
abac46817a
Move all tests to to one file
2023-07-16 18:15:03 +00:00
Dmitry Kardymon
a644317f57
Revert "Merge pull request #52129 from ClickHouse/revert-51291-ADQM-868"
...
This reverts commit 1b9bcae68e
, reversing
changes made to 7284749d05
.
2023-07-16 18:07:22 +00:00
flynn
7f80f7dcb0
Merge branch 'master' into array_concat_agg
2023-07-17 01:15:24 +08:00
flynn
bbade814f3
fix
2023-07-16 17:13:40 +00:00
Alexey Milovidov
09b300cf07
Merge pull request #52143 from ClickHouse/remove-default-value
...
Remove default argument value
2023-07-16 19:22:30 +03:00
robot-ch-test-poll2
1f1fcd027a
Merge pull request #52130 from zvonand/zvonand-issue-42138
...
Small fix for toDateTime64() for dates after 2283-12-31
2023-07-16 18:11:28 +02:00
robot-ch-test-poll2
6524031348
Merge pull request #52138 from azat/decompressor-inode
...
Skip protection from double decompression if inode from maps cannot be obtained
2023-07-16 17:20:43 +02:00
Alexey Milovidov
9bf114f9a3
Merge pull request #52145 from ClickHouse/fix-order-by-tuple-of-window-functions
...
Fix ORDER BY tuple of WINDOW functions
2023-07-16 17:43:07 +03:00
Alexey Milovidov
71d6206fc4
Fix Python
2023-07-16 17:42:22 +03:00