Commit Graph

142058 Commits

Author SHA1 Message Date
Alexey Milovidov
925ed89195 More instrumentation around index 2024-05-20 10:31:32 +02:00
Alexey Milovidov
28ded4a471
Merge pull request #63632 from azat/global-query-profiler-followup
Ignore global profiler if system.trace_log is not enabled and fix really disable it for keeper standalone build
2024-05-20 08:42:25 +02:00
Alexey Milovidov
7bce45f2a0
Merge pull request #64084 from ClickHouse/pretty-print-number-nullable-low-cardinality
Print number tips in case of LowCardinality and Nullable
2024-05-20 08:41:05 +02:00
Alexey Milovidov
9fefece70b Fix tidy 2024-05-20 08:37:48 +02:00
Alexey Milovidov
6c51b771c5
Merge pull request #60883 from ClickHouse/uuid
Fix race in refreshable materialized views causing SELECT to fail sometimes
2024-05-20 06:02:46 +02:00
Alexey Milovidov
ce4158f496
Merge pull request #64082 from ClickHouse/prevent-stack-overflow-ci
Prevent stack overflow in Fuzzer and Stress test
2024-05-20 05:14:59 +02:00
Alexey Milovidov
64645e4010 Merge branch 'master' into pretty-print-number-nullable-low-cardinality 2024-05-20 05:14:29 +02:00
Alexey Milovidov
e9e4e5b2d2
Merge pull request #64081 from ClickHouse/change-log-level
This log message is better in Trace
2024-05-20 05:12:47 +02:00
Alexey Milovidov
921e44a616
Merge pull request #64051 from azat/build/freebsd-fix
Fix searching for libclang_rt.builtins.*.a on FreeBSD
2024-05-20 05:11:25 +02:00
Alexey Milovidov
039b385e73
Merge pull request #64058 from azat/fix-unwind-on-aarch64
Fix unwind on SIGSEGV on aarch64 (due to small stack for signal)
2024-05-20 05:10:55 +02:00
Alexey Milovidov
a00868a116
Merge pull request #64089 from azat/tests/03036_reading_s3_archives
tests: fix expected error for 03036_reading_s3_archives (fixes CI)
2024-05-20 05:07:23 +02:00
Alexey Milovidov
7921b74fd9
Merge pull request #64080 from yohannj/h3PointDistErrorMsg
harmonize h3PointDist* error messages
2024-05-20 05:06:08 +02:00
Alexey Milovidov
53545b5304
Merge pull request #64090 from azat/fix-sanitizers
Fix sanitizers
2024-05-20 03:03:07 +02:00
Azat Khuzhin
64a308013f Tune mmap_rnd_bits to workaround sanitizers issues
v1: vm.mmap_rnd_bits=28
v2: rebase with clang 18.1.6 + kernel.randomize_va_space=0
v3: leave only vm.mmap_rnd_bits=28 + use pre-run.sh (hope that it will
    be used), that way docker will not require --privileged and by some
    reason this breaks ASAN (though I cannot reproduce it)
v4: use actions/common_setup over init_runner.sh (it requires some
    manual deploy)
2024-05-19 22:37:16 +02:00
Yohann Jardin
524f289f47 empty commit 2024-05-19 17:20:22 +02:00
Robert Schulze
b405f934e4
Merge pull request #64024 from rschu1ze/throw-for-invalid-types
Deserialize untrusted binary inputs in a safer way
2024-05-19 07:13:52 +00:00
Alexey Milovidov
c940928bb5
Merge pull request #64091 from azat/fix-sanitizers-bump-clang
Fix sanitizers build by updating llvm/clang that includes fix for it
2024-05-19 08:42:05 +02:00
Azat Khuzhin
81a0c63928 Fix unwind on SIGSEGV on aarch64 (due to small stack for signal)
Only SIGSEGV uses alternative stack (sigaltstack()), which is very
small, 16K, and for aarch64 it is likely not enough for unwinding
(likely due to lots of registers on this platform):

    (gdb) bt
    #0  libunwind::CFI_Parser<libunwind::LocalAddressSpace>::parseFDEInstructions (addressSpace=..., fdeInfo=..., cieInfo=..., upToPC=<optimized out>, arch=4, results=<optimized out>) at ./contrib/libunwind/src/DwarfParser.hpp:561

And this is:

    554       case DW_CFA_remember_state: {
    555         // Avoid operator new because that would be an upward dependency.
    556         // Avoid malloc because it needs heap allocation.
    557         PrologInfoStackEntry *entry =
    558             (PrologInfoStackEntry *)_LIBUNWIND_REMEMBER_ALLOC(
    559                 sizeof(PrologInfoStackEntry));
    560         if (entry != NULL) {
    561           entry->next = rememberStack.entry;
    ^^^
    562           entry->info = *results;
    563           rememberStack.entry = entry;
    564         } else {
    565           return false;
    566         }
    567         _LIBUNWIND_TRACE_DWARF("DW_CFA_remember_state\n");
    568         break;
    569       }

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-05-19 08:11:53 +02:00
Azat Khuzhin
6ed515554b Revert "CI: disable ARM integration test cases with libunwind crash" 2024-05-19 08:11:53 +02:00
alesapin
3878155b19
Merge pull request #64072 from ClickHouse/try_to_fix_cross_compilation_for_grpc
Try to fix grpc for aarch64 crosscompilation
2024-05-18 18:28:21 +00:00
alesapin
086e5d73a4 Followup 2024-05-18 18:03:55 +02:00
Azat Khuzhin
3743b4a2ed Fix sanitizers build by updating llvm/clang that includes fix for it
Rebuild for clang 18.1.3, that contains a workaround [1] for sanitizers
issue [2]:

    $ git tag --contains  c2a57034eff048cd36c563c8e0051db3a70991b3 | tail -1
    llvmorg-18.1.3

 [1]: c2a57034ef
 [2]: https://github.com/ClickHouse/ClickHouse/issues/64086

Since right now version is not enough:

    $ docker run --rm -it clickhouse/test-util llvm-nm-18 --version
    llvm-nm, compatible with GNU nm
    Ubuntu LLVM version 18.1.2
      Optimized build.

But I don't see any fix for TSan, only MSan, but let's try.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-05-18 16:43:19 +02:00
alesapin
2983941ab8 Fix build for openssl
(cherry picked from commit 7efd5d3ab62024619e26dc6c3e28d50bffc98d70)
2024-05-18 16:35:15 +02:00
Azat Khuzhin
e885e9957e tests: fix expected error for 03036_reading_s3_archives
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-05-18 14:24:15 +02:00
Alexey Milovidov
5f938c9c2d
Merge pull request #64056 from jrdi/fix-rmt-is-deleted-docs
Improve ReplacingMergeTree is_deleted documentation
2024-05-18 07:28:22 +02:00
Alexey Milovidov
cde1b82ebd Print number tips in case of LowCardinality and Nullable 2024-05-18 06:42:59 +02:00
Alexey Milovidov
a2d9a32652
Merge pull request #63733 from qiangxuhui/qiangxuhui-loongarch64
Initial support for loongarch64
2024-05-18 05:26:26 +02:00
Alexey Milovidov
58e863f034
Merge pull request #64066 from ClickHouse/alexey-milovidov-patch-8
Add `ch-ui`
2024-05-18 05:16:09 +02:00
Alexey Milovidov
cafd074e0a Prevent stack overflow in Fuzzer and Stress test 2024-05-18 05:11:18 +02:00
Alexey Milovidov
8562d8595a This log message is better in Trace 2024-05-18 04:40:37 +02:00
Yohann Jardin
349f9eeeee harmonize h3PointDist* error messages 2024-05-18 00:29:22 +02:00
alesapin
24892b151a Try to fix grpc for aarch64 crosscompilation
(cherry picked from commit f3fbf532e0d4d7616f51a9c3d5087cf7b2e6d7d5)
2024-05-17 22:55:12 +02:00
Mikhail f. Shiryaev
8980e3bb40
Merge pull request #64062 from ClickHouse/style-mimetype-fallback
Files without shebang have mime 'text/plain' or 'inode/x-empty'
2024-05-17 20:35:12 +00:00
vdimir
e5ad196317
Merge pull request #62346 from ClickHouse/vdimir/analyzer_comapre_columns
Analyzer: Fix validateAggregates for tables with different aliases
2024-05-17 20:00:04 +00:00
Alexey Milovidov
71d33baf0e
Update gui.md 2024-05-17 21:45:44 +03:00
Alexey Milovidov
e37447d1f5
Merge pull request #64064 from ClickHouse/revert-64020-patch-1
Revert "Update gui.md - Add ch-ui to open-source available tools."
2024-05-17 20:43:37 +02:00
Alexey Milovidov
f8693017fb
Revert "Update gui.md - Add ch-ui to open-source available tools." 2024-05-17 21:43:24 +03:00
Alexey Milovidov
e39d8c001f
Merge pull request #63923 from ClickHouse/update-datasketches
Update Datasketches
2024-05-17 20:30:41 +02:00
Alexey Milovidov
8e838c2805
Merge pull request #59183 from azat/mv/extended-syntax-for-inner-table
Fix passing projections/indexes/primary key from columns list from CREATE query into inner table of MV
2024-05-17 20:21:08 +02:00
Alexey Milovidov
8236ff1cd8
Merge pull request #64020 from caioricciuti/patch-1
Update gui.md - Add ch-ui to open-source available tools.
2024-05-17 20:05:31 +02:00
Alexey Milovidov
bd9709adee
Merge pull request #64022 from ClickHouse/fix-analyzer
Fix a typo in Analyzer
2024-05-17 20:02:13 +02:00
Alexander Tokmakov
4b0df53c51
Merge pull request #63945 from ClickHouse/require-batched-jobs
Fix bug when `Required check [1/3]` is not included in Mergeable Check
2024-05-17 17:51:44 +00:00
Mikhail f. Shiryaev
38787c429f
Merge pull request #62652 from ianton-ru/fix-host-resolver-fail
Fix HostResolver behavior on fail
2024-05-17 17:37:42 +00:00
Mikhail f. Shiryaev
d6a16b81ed
Files without shebang have mime 'text/plain' or 'inode/x-empty' 2024-05-17 19:30:18 +02:00
Jordi Villar
16889ff032 Rollback doc example 2024-05-17 18:03:51 +02:00
Jordi Villar
acba6fd7a2 Fix typo 2024-05-17 17:57:24 +02:00
Jordi Villar
a2c040111c Improve ReplacingMergeTree is_deleted documentation 2024-05-17 17:47:35 +02:00
Azat Khuzhin
85aa8b71a4 Fix searching for libclang_rt.builtins.*.a on FreeBSD
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-05-17 16:15:33 +02:00
Nikolay Degterinsky
7f79d4f669
Merge pull request #64038 from Blargian/patch-4
[Docs] Fix small `in.md` formatting issues
2024-05-17 13:55:53 +00:00
Mikhail f. Shiryaev
2b2d2ce270
Merge pull request #64039 from ClickHouse/new-release-create-branch-only
Do not create new release in release branch automatically
2024-05-17 13:19:27 +00:00