Skip to content

Commit 024a0b4

Browse files
authored
Merge pull request #706 from Altinity/antalya-25.2
Antalya 25.2
2 parents 1bd3a35 + 16dc3e9 commit 024a0b4

File tree

7,898 files changed

+165683
-428524
lines changed

Some content is hidden

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

7,898 files changed

+165683
-428524
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ NamespaceIndentation: None
8383
ObjCBlockIndentWidth: 4
8484
ObjCSpaceAfterProperty: true
8585
ObjCSpaceBeforeProtocolList: true
86+
PackConstructorInitializers: Never
8687
PenaltyBreakBeforeFirstCallParameter: 19
8788
PenaltyBreakComment: 300
8889
PenaltyBreakFirstLessLess: 120

.clang-tidy

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,23 @@ Checks: [
1717
'-android-*',
1818

1919
'-boost-use-ranges',
20-
'-modernize-use-ranges',
2120

2221
'-bugprone-assignment-in-if-condition',
2322
'-bugprone-branch-clone',
2423
'-bugprone-easily-swappable-parameters',
2524
'-bugprone-exception-escape',
26-
'-bugprone-forward-declaration-namespace',
2725
'-bugprone-implicit-widening-of-multiplication-result',
2826
'-bugprone-multi-level-implicit-pointer-conversion',
2927
'-bugprone-narrowing-conversions',
30-
'-bugprone-not-null-terminated-result',
3128
'-bugprone-unchecked-optional-access',
3229
'-bugprone-crtp-constructor-accessibility',
30+
'-bugprone-not-null-terminated-result',
3331

3432
'-cert-dcl16-c',
3533
'-cert-err58-cpp',
36-
'-cert-msc32-c',
37-
'-cert-msc51-cpp',
38-
'-cert-oop54-cpp',
39-
'-cert-oop57-cpp',
40-
'-cert-err33-c', # Misreports on clang-19: it warns about all functions containing 'remove' in the name, not only about the standard library.
4134

4235
'-clang-analyzer-optin.performance.Padding',
4336

44-
'-clang-analyzer-cplusplus.PlacementNew',
45-
46-
'-clang-analyzer-unix.Malloc',
47-
4837
'-cppcoreguidelines-*', # impractical in a codebase as large as ClickHouse, also slow
4938

5039
'-darwin-*',
@@ -77,39 +66,34 @@ Checks: [
7766
'-hicpp-use-emplace',
7867
'-hicpp-vararg',
7968

80-
'-linuxkernel-*',
81-
8269
'-llvm-*',
8370

8471
'-llvmlibc-*',
8572

86-
'-openmp-*',
87-
8873
'-misc-const-correctness',
8974
'-misc-include-cleaner', # useful but far too many occurrences
9075
'-misc-no-recursion',
9176
'-misc-non-private-member-variables-in-classes',
92-
'-misc-confusable-identifiers', # useful but slooo
9377
'-misc-use-anonymous-namespace',
9478
'-misc-use-internal-linkage',
9579

9680
'-modernize-avoid-c-arrays',
9781
'-modernize-concat-nested-namespaces',
98-
'-modernize-macro-to-enum',
9982
'-modernize-pass-by-value',
10083
'-modernize-return-braced-init-list',
10184
'-modernize-use-auto',
102-
'-modernize-use-constraints', # This is a good check, but clang-tidy crashes, see https://github.com/llvm/llvm-project/issues/91872
10385
'-modernize-use-default-member-init',
10486
'-modernize-use-emplace',
10587
'-modernize-use-nodiscard',
88+
'-modernize-use-ranges',
10689
'-modernize-use-trailing-return-type',
10790
'-modernize-use-designated-initializers',
10891

92+
'-performance-avoid-endl',
10993
'-performance-enum-size',
11094
'-performance-inefficient-string-concatenation',
95+
'-performance-inefficient-vector-operation',
11196
'-performance-no-int-to-ptr',
112-
'-performance-avoid-endl',
11397
'-performance-unnecessary-value-param',
11498

11599
'-portability-simd-intrinsics',
@@ -124,7 +108,6 @@ Checks: [
124108
'-readability-identifier-length',
125109
'-readability-identifier-naming', # useful but too slow
126110
'-readability-implicit-bool-conversion',
127-
'-readability-isolate-declaration',
128111
'-readability-magic-numbers',
129112
'-readability-named-parameter',
130113
'-readability-redundant-declaration',

.clangd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ Diagnostics:
1414
readability-identifier-naming,
1515
bugprone-reserved-identifier,
1616
]
17+
# Require LLVM 20 (https://github.com/llvm/llvm-project/pull/67749)
18+
Style:
19+
AngledHeaders: [".*"]

.github/ISSUE_TEMPLATE/20_feature-request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Feature request
2+
description: Suggest an idea for ClickHouse
3+
labels: ["feature"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
> (you don't have to strictly follow this form)
9+
- type: textarea
10+
attributes:
11+
label: Company or project name
12+
description: Put your company name or project description here.
13+
validations:
14+
required: false
15+
- type: textarea
16+
attributes:
17+
label: Use case
18+
description: A clear and concise description of what the intended usage scenario is.
19+
validations:
20+
required: true
21+
- type: textarea
22+
attributes:
23+
label: Describe the solution you'd like
24+
description: A clear and concise description of what you want to happen.
25+
validations:
26+
required: true
27+
- type: textarea
28+
attributes:
29+
label: Describe alternatives you've considered
30+
description: A clear and concise description of any alternative solutions or features you've considered.
31+
validations:
32+
required: false
33+
- type: textarea
34+
attributes:
35+
label: Additional context
36+
description: Add any other context or screenshots about the feature request here.
37+
validations:
38+
required: false
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Unexpected behaviour
2+
description: Some feature is working in non-obvious way
3+
labels: ["unexpected behaviour"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
> (you don't have to strictly follow this form)
9+
- type: textarea
10+
attributes:
11+
label: Company or project name
12+
description: Put your company name or project description here.
13+
validations:
14+
required: false
15+
- type: textarea
16+
attributes:
17+
label: Describe the unexpected behaviour
18+
description: A clear and concise description of what works not as it is supposed to.
19+
validations:
20+
required: true
21+
- type: textarea
22+
attributes:
23+
label: How to reproduce
24+
description: |
25+
* Which ClickHouse server version to use
26+
* Which interface to use, if matters
27+
* Non-default settings, if any
28+
* `CREATE TABLE` statements for all tables involved
29+
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary
30+
* Queries to run that lead to unexpected result
31+
validations:
32+
required: true
33+
- type: textarea
34+
attributes:
35+
label: Expected behavior
36+
description: A clear and concise description of what you expected to happen.
37+
validations:
38+
required: false
39+
- type: textarea
40+
attributes:
41+
label: Error message and/or stacktrace
42+
description: If applicable, add screenshots to help explain your problem.
43+
validations:
44+
required: false
45+
- type: textarea
46+
attributes:
47+
label: Additional context
48+
description: Add any other context about the problem here.
49+
validations:
50+
required: false
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Incomplete implementation
2+
description: Implementation of existing feature is not finished
3+
labels: ["unfinished code"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
> (you don't have to strictly follow this form)
9+
- type: textarea
10+
attributes:
11+
label: Company or project name
12+
description: Put your company name or project description here.
13+
validations:
14+
required: false
15+
- type: textarea
16+
attributes:
17+
label: Describe the unexpected behaviour
18+
description: A clear and concise description of what works not as it is supposed to.
19+
validations:
20+
required: true
21+
- type: textarea
22+
attributes:
23+
label: How to reproduce
24+
description: |
25+
* Which ClickHouse server version to use
26+
* Which interface to use, if matters
27+
* Non-default settings, if any
28+
* `CREATE TABLE` statements for all tables involved
29+
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary
30+
* Queries to run that lead to unexpected result
31+
validations:
32+
required: true
33+
- type: textarea
34+
attributes:
35+
label: Expected behavior
36+
description: A clear and concise description of what you expected to happen.
37+
validations:
38+
required: false
39+
- type: textarea
40+
attributes:
41+
label: Error message and/or stacktrace
42+
description: If applicable, add screenshots to help explain your problem.
43+
validations:
44+
required: false
45+
- type: textarea
46+
attributes:
47+
label: Additional context
48+
description: Add any other context about the problem here.
49+
validations:
50+
required: false
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Usability issue
2+
description: Report something can be made more convenient to use
3+
labels: ["usability"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
> (you don't have to strictly follow this form)
9+
- type: textarea
10+
attributes:
11+
label: Company or project name
12+
description: Put your company name or project description here.
13+
validations:
14+
required: false
15+
- type: textarea
16+
attributes:
17+
label: Describe the unexpected behaviour
18+
description: A clear and concise description of what works not as it is supposed to.
19+
validations:
20+
required: true
21+
- type: textarea
22+
attributes:
23+
label: How to reproduce
24+
description: |
25+
* Which ClickHouse server version to use
26+
* Which interface to use, if matters
27+
* Non-default settings, if any
28+
* `CREATE TABLE` statements for all tables involved
29+
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary
30+
* Queries to run that lead to unexpected result
31+
validations:
32+
required: true
33+
- type: textarea
34+
attributes:
35+
label: Expected behavior
36+
description: A clear and concise description of what you expected to happen.
37+
validations:
38+
required: false
39+
- type: textarea
40+
attributes:
41+
label: Error message and/or stacktrace
42+
description: If applicable, add screenshots to help explain your problem.
43+
validations:
44+
required: false
45+
- type: textarea
46+
attributes:
47+
label: Additional context
48+
description: Add any other context about the problem here.
49+
validations:
50+
required: false
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build issue
2+
description: Report failed ClickHouse build from master
3+
labels: ["build"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
> Make sure that `git diff` result is empty and you've just pulled fresh master. Try cleaning up cmake cache. Just in case, official build instructions are published here: https://clickhouse.com/docs/en/development/build/
9+
- type: textarea
10+
attributes:
11+
label: Company or project name
12+
description: Put your company name or project description here.
13+
validations:
14+
required: false
15+
- type: textarea
16+
attributes:
17+
label: Operating system
18+
description: OS kind or distribution, specific version/release, non-standard kernel if any. If you are trying to build inside virtual machine, please mention it too.
19+
validations:
20+
required: true
21+
- type: textarea
22+
attributes:
23+
label: CMake version
24+
description: The output of `cmake --version`.
25+
validations:
26+
required: true
27+
- type: textarea
28+
attributes:
29+
label: Ninja version
30+
description: The output of `ninja --version`.
31+
validations:
32+
required: true
33+
- type: textarea
34+
attributes:
35+
label: Compiler name and version
36+
description: We recommend to use clang. The version can be obtained via `clang --version`.
37+
validations:
38+
required: true
39+
- type: textarea
40+
attributes:
41+
label: Full cmake and/or ninja output
42+
description: Please include everything!
43+
validations:
44+
required: true
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Documentation issue
2+
description: Report something incorrect or missing in documentation
3+
labels: ["comp-documentation"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
> Make sure that `git diff` result is empty and you've just pulled fresh master. Try cleaning up cmake cache. Just in case, official build instructions are published here: https://clickhouse.com/docs/en/development/build/
9+
- type: textarea
10+
attributes:
11+
label: Company or project name
12+
description: Put your company name or project description here.
13+
validations:
14+
required: false
15+
- type: textarea
16+
attributes:
17+
label: Describe the issue
18+
description: A clear and concise description of what's wrong in documentation.
19+
validations:
20+
required: true
21+
- type: textarea
22+
attributes:
23+
label: Additional context
24+
description: Add any other context about the problem here.
25+
validations:
26+
required: false

0 commit comments

Comments
 (0)