Skip to content

Commit 5878012

Browse files
Merge branch 'master' of github.com:ClickHouse/ClickHouse into patch-8
2 parents 6295c7a + 125202b commit 5878012

File tree

802 files changed

+305318
-6257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

802 files changed

+305318
-6257
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,19 @@ Please feel free to reach out to tyler `<at>` clickhouse `<dot>` com.
4747
You can also peruse [ClickHouse Events](https://clickhouse.com/company/news-events) for a list of all upcoming trainings, meetups, speaking engagements, etc.
4848

4949
Upcoming meetups
50-
* [Jakarta Meetup with AWS](https://www.meetup.com/clickhouse-indonesia-user-group/events/306973747/) - April 22, 2025
51-
* [Denver Meetup](https://www.meetup.com/clickhouse-denver-user-group/events/306934991/) - April 23, 2025
5250
* [Austin Meetup](https://www.meetup.com/clickhouse-austin-user-group/events/307289908) - May 13, 2025
5351
* [London Meetup](https://www.meetup.com/clickhouse-london-user-group/events/306047172/) - May 14, 2025
5452
* [Istanbul Meetup](https://www.meetup.com/clickhouse-turkiye-meetup-group/events/306978337/) - May 15, 2025
5553
* [Shenzhen Meetup](https://www.huodongxing.com/event/7803892350511) - May 17, 2025
54+
* [Seattle Meetup](https://www.meetup.com/clickhouse-seattle-user-group/events/307622716/) - May 20, 2025
55+
* [Washington DC Meetup](https://www.meetup.com/clickhouse-dc-user-group/events/307622954/) - June 12, 2025
56+
* [Atlanta Meetup](https://www.meetup.com/clickhouse-atlanta-meetup-group/events/307627590/) - July 8, 2025
57+
* [New York Meetup](https://www.meetup.com/clickhouse-new-york-user-group/events/307627675/) - July 15, 2025
58+
5659

5760
Recent meetups
61+
* [Denver Meetup](https://www.meetup.com/clickhouse-denver-user-group/events/306934991/) - April 23, 2025
62+
* [Jakarta Meetup with AWS](https://www.meetup.com/clickhouse-indonesia-user-group/events/306973747/) - April 22, 2025
5863
* [Kuala Lumper Meetup with CNCF](https://www.meetup.com/clickhouse-malaysia-meetup-group/events/306697678/) - April 16, 2025
5964
* [Tokyo Meetup with Confluent](https://www.meetup.com/clickhouse-tokyo-user-group/events/306832118/) - April 15, 2025
6065
* [Ho Chi Minh Meetup with AWS & Infinite Lambda](https://www.meetup.com/clickhouse-vietnam-meetup-group/events/306810105/) - April 12, 2025
@@ -73,12 +78,7 @@ Recent meetups
7378
* [Seattle Meetup](https://www.meetup.com/clickhouse-seattle-user-group/events/305916325) - March 5, 2025
7479
* [Paris Meetup](https://www.meetup.com/clickhouse-france-user-group/events/305792997) - March 4, 2025
7580
* [Shanghai Meetup](https://www.huodongxing.com/event/3794544969111?td=3894807410019) - March 1, 2025
76-
* [Singapore Meetup](https://www.meetup.com/clickhouse-singapore-meetup-group/events/305917892/) - Feb 25, 2025
77-
* [Los Angeles Meetup (with DevOpsDays)](https://www.meetup.com/clickhouse-los-angeles-user-group/events/305952193) - Feb 20, 2025
78-
* [Wellington Meetup](https://www.meetup.com/clickhouse-wellington-user-group/events/305666164/) - Feb 20, 2025
79-
* [Auckland Meetup](https://www.meetup.com/clickhouse-auckland-meetup-group/events/305666103/) - Feb 19, 2025
80-
* [Dubai Meetup](https://www.meetup.com/clickhouse-dubai-meetup-group/events/303096989/) - Feb 10, 2025
81-
* [Bangalore Meetup](https://www.meetup.com/clickhouse-bangalore-user-group/events/305497951/) - Feb 8, 2025
81+
8282

8383

8484

base/base/find_symbols.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ inline const char * find_first_symbols_sse42(const char * const begin, const cha
274274
const char * pos = begin;
275275

276276
#if defined(__SSE4_2__)
277-
constexpr int mode = _SIDD_UBYTE_OPS | _SIDD_CMP_EQUAL_ANY | _SIDD_LEAST_SIGNIFICANT;
277+
constexpr int mode = _SIDD_UBYTE_OPS | _SIDD_CMP_EQUAL_ANY | _SIDD_LEAST_SIGNIFICANT; // NOLINT(misc-redundant-expression)
278278

279279
__m128i set = _mm_setr_epi8(c01, c02, c03, c04, c05, c06, c07, c08, c09, c10, c11, c12, c13, c14, c15, c16);
280280

base/poco/JSON/include/Poco/JSON/Array.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ namespace JSON
208208
// The reason we have this flag here (rather than as argument to stringify())
209209
// is because Array can be returned stringified from a Dynamic::Var:toString(),
210210
// so it must know whether to escape unicode or not.
211-
bool _escapeUnicode;
211+
std::atomic<bool> _escapeUnicode;
212212
};
213213

214214

base/poco/JSON/include/Poco/JSON/Object.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define JSON_Object_INCLUDED
1919

2020

21+
#include <atomic>
2122
#include <deque>
2223
#include <iostream>
2324
#include <map>
@@ -292,7 +293,7 @@ namespace JSON
292293
// The reason for this flag (rather than as argument to stringify()) is
293294
// because Object can be returned stringified from Dynamic::Var::toString(),
294295
// so it must know whether to escape unicode or not.
295-
bool _escapeUnicode;
296+
std::atomic<bool> _escapeUnicode;
296297
mutable StructPtr _pStruct;
297298
mutable bool _modified;
298299
};

base/poco/JSON/src/Object.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Object::Object(int options):
3333

3434
Object::Object(const Object& other) : _values(other._values),
3535
_preserveInsOrder(other._preserveInsOrder),
36-
_escapeUnicode(other._escapeUnicode),
36+
_escapeUnicode(other._escapeUnicode.load()),
3737
_pStruct(!other._modified ? other._pStruct : 0),
3838
_modified(other._modified)
3939
{
@@ -48,7 +48,7 @@ Object::Object(Object&& other) :
4848
_values(std::move(other._values)),
4949
_keys(std::move(other._keys)),
5050
_preserveInsOrder(other._preserveInsOrder),
51-
_escapeUnicode(other._escapeUnicode),
51+
_escapeUnicode(other._escapeUnicode.load()),
5252
_pStruct(!other._modified ? other._pStruct : 0),
5353
_modified(other._modified)
5454
{
@@ -63,7 +63,7 @@ Object &Object::operator= (Object &&other)
6363
_values = other._values;
6464
_preserveInsOrder = other._preserveInsOrder;
6565
syncKeys(other._keys);
66-
_escapeUnicode = other._escapeUnicode;
66+
_escapeUnicode = other._escapeUnicode.load();
6767
_pStruct = !other._modified ? other._pStruct : 0;
6868
_modified = other._modified;
6969
other.clear();
@@ -87,7 +87,7 @@ Object &Object::operator= (const Object &other)
8787
_values = other._values;
8888
_keys = other._keys;
8989
_preserveInsOrder = other._preserveInsOrder;
90-
_escapeUnicode = other._escapeUnicode;
90+
_escapeUnicode = other._escapeUnicode.load();
9191
_pStruct = !other._modified ? other._pStruct : 0;
9292
_modified = other._modified;
9393
}

ci/defs/job_configs.py

Lines changed: 27 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
from ci.defs.defs import ArtifactNames, BuildTypes, JobNames, RunnerLabels
44

5+
build_digest_config = Job.CacheDigestConfig(
6+
include_paths=[
7+
"./src",
8+
"./contrib/",
9+
"./CMakeLists.txt",
10+
"./PreLoad.cmake",
11+
"./cmake",
12+
"./base",
13+
"./programs",
14+
"./rust",
15+
"./ci/jobs/build_clickhouse.py",
16+
"./ci/jobs/scripts/job_hooks/build_profile_hook.py",
17+
],
18+
with_git_submodules=True,
19+
)
20+
521

622
class JobConfigs:
723
docker_build_arm = Job.Config(
@@ -97,20 +113,7 @@ class JobConfigs:
97113
run_in_docker="clickhouse/binary-builder+--network=host",
98114
timeout=3600 * 4,
99115
allow_merge_on_failure=True,
100-
digest_config=Job.CacheDigestConfig(
101-
include_paths=[
102-
"./src",
103-
"./contrib/",
104-
"./CMakeLists.txt",
105-
"./PreLoad.cmake",
106-
"./cmake",
107-
"./base",
108-
"./programs",
109-
"./rust",
110-
"./ci/jobs/build_clickhouse.py",
111-
],
112-
with_git_submodules=True,
113-
),
116+
digest_config=build_digest_config,
114117
).parametrize(
115118
parameter=[
116119
BuildTypes.ARM_TIDY,
@@ -127,21 +130,11 @@ class JobConfigs:
127130
# --network=host required for ec2 metadata http endpoint to work
128131
run_in_docker="clickhouse/binary-builder+--network=host",
129132
timeout=3600 * 2,
130-
digest_config=Job.CacheDigestConfig(
131-
include_paths=[
132-
"./src",
133-
"./contrib/",
134-
"./CMakeLists.txt",
135-
"./PreLoad.cmake",
136-
"./cmake",
137-
"./base",
138-
"./programs",
139-
"./rust",
140-
"./ci/jobs/build_clickhouse.py",
141-
],
142-
with_git_submodules=True,
143-
),
144-
post_hooks=["python3 ./ci/jobs/scripts/job_hooks/build_post_hook.py"],
133+
digest_config=build_digest_config,
134+
post_hooks=[
135+
"python3 ./ci/jobs/scripts/job_hooks/build_master_head_hook.py",
136+
"python3 ./ci/jobs/scripts/job_hooks/build_profile_hook.py",
137+
],
145138
).parametrize(
146139
parameter=[
147140
BuildTypes.AMD_DEBUG,
@@ -225,21 +218,11 @@ class JobConfigs:
225218
# --network=host required for ec2 metadata http endpoint to work
226219
run_in_docker="clickhouse/binary-builder+--network=host",
227220
timeout=3600 * 2,
228-
digest_config=Job.CacheDigestConfig(
229-
include_paths=[
230-
"./src",
231-
"./contrib/",
232-
"./CMakeLists.txt",
233-
"./PreLoad.cmake",
234-
"./cmake",
235-
"./base",
236-
"./programs",
237-
"./rust",
238-
"./ci/jobs/build_clickhouse.py",
239-
],
240-
with_git_submodules=True,
241-
),
242-
post_hooks=["python3 ./ci/jobs/scripts/job_hooks/build_post_hook.py"],
221+
digest_config=build_digest_config,
222+
post_hooks=[
223+
"python3 ./ci/jobs/scripts/job_hooks/build_master_head_hook.py",
224+
"python3 ./ci/jobs/scripts/job_hooks/build_profile_hook.py",
225+
],
243226
).parametrize(
244227
parameter=[
245228
BuildTypes.AMD_DARWIN,

ci/docker/binary-builder/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ENV CC=clang-${LLVM_VERSION}
55
ENV CXX=clang++-${LLVM_VERSION}
66

77
# If the cctools is updated, then first build it in the CI, then update here in a different commit
8-
COPY --from=clickhouse/cctools:13cfebfd8f1bbc65ab49 /cctools /cctools
8+
COPY --from=clickhouse/cctools:4670e95dde3de689f103 /cctools /cctools
99

1010
# A cross-linker for RISC-V 64 (we need it, because LLVM's LLD does not work):
1111
RUN apt-get update \

ci/docker/fasttest/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ RUN apt-get update \
6767
&& apt-get clean \
6868
&& rm -rf /var/lib/apt/lists/* /var/cache/debconf /tmp/*
6969

70-
COPY --from=clickhouse/cctools:13cfebfd8f1bbc65ab49 /opt/gdb /opt/gdb
70+
COPY --from=clickhouse/cctools:4670e95dde3de689f103 /opt/gdb /opt/gdb
7171
# Give suid to gdb to grant it attach permissions
7272
RUN chmod u+s /opt/gdb/bin/gdb
7373
ENV PATH="/opt/gdb/bin:${PATH}"

ci/jobs/build_clickhouse.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,12 @@ def main():
124124
results = []
125125

126126
if res and JobStages.CHECKOUT_SUBMODULES in stages:
127-
Shell.check(f"rm -rf {build_dir} && mkdir -p {build_dir}")
127+
Shell.check(f"mkdir -p {build_dir}")
128128
results.append(
129129
Result.from_commands_run(
130130
name="Checkout Submodules",
131131
command=f"git submodule sync --recursive && git submodule init && git submodule update --depth 1 --recursive --jobs {min([Utils.cpu_count(), 20])}",
132+
retries=3,
132133
)
133134
)
134135
res = results[-1].is_ok()

ci/jobs/scripts/check_style/aspell-ignore/en/aspell-dict.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,7 @@ aggthrow
12511251
aiochclient
12521252
alloc
12531253
allocator
1254+
allowlist
12541255
alphaTokens
12551256
amplab
12561257
analysisOfVariance
@@ -1687,6 +1688,7 @@ denormalize
16871688
denormalized
16881689
denormalizing
16891690
denormals
1691+
denylist
16901692
dequeued
16911693
dequeues
16921694
dereference
@@ -2836,6 +2838,8 @@ stochasticlinearregression
28362838
stochasticlogisticregression
28372839
storages
28382840
storig
2841+
stringBytesEntropy
2842+
stringBytesUniq
28392843
stringCompare
28402844
stringJaccardIndex
28412845
stringJaccardIndexUTF

0 commit comments

Comments
 (0)