Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]Inner shuffle hash #26

Draft
wants to merge 583 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
583 commits
Select commit Hold shift + click to select a range
c583a4f
Merge pull request #49222 from DanRoscigno/add-examples-to-functions
rschu1ze Apr 28, 2023
107474a
Merge pull request #44985 from kssenii/cache-better-locks
kssenii Apr 28, 2023
bb4a7f6
Slight improvements to coordinator logging (#49204)
Algunenano Apr 28, 2023
7f91105
Update curl to 8.0.1
bkuschel Apr 13, 2023
2246306
remove commented lines
bkuschel Apr 13, 2023
449f63a
Add missing files
bkuschel Apr 14, 2023
dcfee03
One more file
bkuschel Apr 14, 2023
e640d79
Update Curl to latest
bkuschel Apr 28, 2023
5c9959a
Resolve conservation
MikhailBurdukov Apr 28, 2023
f724a60
Merge pull request #49295 from fky2015/patch-1
robot-ch-test-poll1 Apr 28, 2023
ef49603
Merge branch 'master' into fix_zero_copy_not_atomic
alesapin Apr 28, 2023
bbdfb9d
Merge pull request #48300 from aiven-sal/aiven-sal/case2
CurtizJ Apr 28, 2023
d585071
Merge pull request #49263 from ClickHouse/fix-garbage
alexey-milovidov Apr 28, 2023
85d78a6
Merge pull request #49286 from ClickHouse/added-documentation-for-kol…
alexey-milovidov Apr 28, 2023
6dcfdbf
Merge branch 'master' into clusters_is_active_column
alexey-milovidov Apr 28, 2023
309291a
Merge pull request #49250 from FrankChen021/test
alexey-milovidov Apr 28, 2023
c86d3da
Update AsynchronousMetrics.cpp
alexey-milovidov Apr 28, 2023
8c60b60
Receive the best robot token only once
Felixoid Apr 28, 2023
0520342
Merge pull request #49116 from ClickHouse/fix-analyzer-tests
novikd Apr 28, 2023
691fdbf
Update StorageReplicatedMergeTree.cpp (#49302)
tavplubix Apr 28, 2023
911d4e9
Merge branch 'master' into fix_some_tests3
alexey-milovidov Apr 28, 2023
b2aa2aa
Fix
kssenii Apr 28, 2023
a040256
Update FileCache.cpp
kssenii Apr 28, 2023
2d156d0
Fix 02516_join_with_totals_and_subquery_bug with new analyzer
novikd Apr 28, 2023
54c8f63
Fixes
evillique Apr 28, 2023
69d8d41
Add docs, better tests
evillique Apr 28, 2023
70ee02a
Add node holder
alesapin Apr 28, 2023
8465b6c
Merge pull request #49139 from ClickHouse/remove-upgradable-mutex
KochetovNicolai Apr 28, 2023
a60ee30
Merge branch 'master' into date-trunc-return-date-time
mauidude Apr 28, 2023
01e70c6
Add a fallback to authenticated requests to GH API
Felixoid Apr 28, 2023
cd171be
Merge pull request #45999 from sichenzhao/cgroup_v2
alexey-milovidov Apr 28, 2023
434aa3e
Fix build
evillique Apr 28, 2023
47b77ac
Merge pull request #49309 from ClickHouse/kssenii-patch-7
kssenii Apr 28, 2023
3b53616
Update tests.
KochetovNicolai Apr 28, 2023
5bd4fc9
Merge pull request #48492 from azat/s3-multipart-strict-size
alexey-milovidov Apr 28, 2023
f2839ad
Merge pull request #49310 from ClickHouse/fix-analyzer-tests
alexey-milovidov Apr 28, 2023
af558e2
impl
nickitat Apr 28, 2023
71b3ad8
Merge pull request #48765 from ClibMouse/update_curl
alexey-milovidov Apr 28, 2023
e670c51
Unify commit.create_status and post_commit_status
Felixoid Apr 4, 2023
144ebd3
Implement main() in run_check.py
Felixoid Apr 6, 2023
ccd4fd7
Use commit_status_helper.post_commit_status everywhere
Felixoid Apr 6, 2023
eb11fb0
Clean up ast_fuzzer_check.py
Felixoid Apr 6, 2023
19fd5f9
Add descriptions for the status comment
Felixoid Apr 12, 2023
4405459
Refactor RerunHelper to reduce API calls
Felixoid Apr 18, 2023
d58abd3
Add a function get_repo with global state
Felixoid Apr 18, 2023
df33b99
Rework post_commit_status, add set_status_comment there
Felixoid Apr 18, 2023
f411be8
Rename `Run Check` to `CI running`
Felixoid Apr 20, 2023
c66e50f
Remove options from S3Helper, they are global
Felixoid Apr 20, 2023
e8cf417
Use NotSet in post_commit_status for optional arguments
Felixoid Apr 24, 2023
61c6c61
Rework the status comment to be a digest with the full report available
Felixoid Apr 25, 2023
20c8f0f
Use only one comment for all statuses in the PR
Felixoid Apr 26, 2023
886ba0b
Replace markdown with pure HTML for check descriptions
Felixoid Apr 26, 2023
d336bee
Fix the `Logs` header for case when only log_urls is set
Felixoid Apr 28, 2023
f7048bd
Merge pull request #48468 from ClickHouse/status-comment
Felixoid Apr 29, 2023
b385b51
Merge pull request #49314 from ClickHouse/fallback-auth-gh-api
Felixoid Apr 29, 2023
7d867d7
Merge pull request #49225 from MikhailBurdukov/mongo_dict_tls
kssenii Apr 29, 2023
0be9c07
Merge branch 'master' into rand_exp
nickitat Apr 29, 2023
f1ff2c0
Fix oss-fuzz build errors (#49236)
nickitat Apr 29, 2023
15d0379
Merge pull request #48792 from ClickHouse/fix_some_tests3
alexey-milovidov Apr 29, 2023
daa0b09
Merge branch 'master' into fix_zero_copy_not_atomic
alesapin Apr 29, 2023
d945089
Fix tests visualizer
alexey-milovidov Apr 29, 2023
ea8c8ef
Fix test
evillique Apr 29, 2023
7b63c3a
Merge pull request #49344 from ClickHouse/fix-tests-visualizer
alexey-milovidov Apr 30, 2023
408db4a
Updated to store IMergeTreeDataPartInfoForReader instead of DataPart …
SmitaRKulkarni Apr 30, 2023
ec2c860
Merge branch 'fix_zero_copy_not_atomic' of github.com:ClickHouse/Clic…
alesapin Apr 30, 2023
a95a5f6
Fix two bugs and add test
alesapin Apr 30, 2023
3955b9b
fix shell check
alesapin Apr 30, 2023
d34fe4b
Merge branch 'master' into fix_zero_copy_not_atomic
alesapin Apr 30, 2023
941b408
Reverted changes to test as reference of data part will be same
SmitaRKulkarni Apr 30, 2023
a098298
Remove file for empty parts
alesapin Apr 25, 2023
f03e759
Remove on detach
alesapin Apr 25, 2023
a1e9236
Fix tests which depend on detached files count
alesapin Apr 26, 2023
c6f91af
Add more debug to test (it's not flaky on my setup)
alesapin Apr 28, 2023
6281606
More debug info
alesapin Apr 30, 2023
b22a54d
fix
alesapin Apr 30, 2023
ab97dbc
Automatic style fix
robot-clickhouse Apr 30, 2023
5631342
Improve docs
evillique Apr 30, 2023
f64ef88
Merge remote-tracking branch 'upstream/master' into bcrypt
evillique Apr 30, 2023
2bce8a1
Fix typo "nullbale" in data-types reference doc
raqbit May 1, 2023
a8e63ab
Merge pull request #49350 from Raqbit/docs-data-types-fix-nullable
robot-ch-test-poll May 1, 2023
f7d2654
Followup
alesapin May 1, 2023
35a736f
use sanitizeBlock
ongkong Apr 21, 2023
1bffb28
add comment, change check location
ongkong Apr 25, 2023
2a28869
Merge branch 'master' into don_t_write_version_file_on_start
alesapin May 1, 2023
93201f2
Fix load_factor for HASHED/SPARSE_HASHED dictionaries with SHARDS
azat Apr 28, 2023
2fd1a73
Fix element_count for HASHED/SPARSE_HASHED with multiple attributes
azat May 1, 2023
5fbf601
Improve 02730_dictionary_hashed_load_factor test
azat May 1, 2023
abe0cfd
fix wrong query result when using nullable primary key (#49172)
canhld94 May 1, 2023
242bf03
Update 01600_parts_states_metrics_long.sh
KochetovNicolai May 1, 2023
698c3d8
Update 01600_parts_types_metrics_long.sh
KochetovNicolai May 1, 2023
451f02b
fix test
tavplubix May 1, 2023
21f58df
Finally fix flaky test
alesapin May 1, 2023
17effd4
Fix black
alesapin May 1, 2023
5b24a84
Apply black check
alesapin May 1, 2023
49a7eb7
Merge pull request #48547 from ClickHouse/keeper-bench-2.0
alesapin May 1, 2023
d36f60b
Update settings.md
DanRoscigno May 1, 2023
1be9371
Better
evillique May 1, 2023
84432b7
Add test
evillique May 1, 2023
d21cdde
add check
DanRoscigno May 1, 2023
cae72fa
Merge branch 'master' into DanRoscigno-patch-5
DanRoscigno May 1, 2023
dd7282e
Update ci_config.py
alexey-milovidov May 1, 2023
266c9d4
review fixes
nickitat May 1, 2023
7902a14
Merge pull request #49353 from ClickHouse/DanRoscigno-patch-5
DanRoscigno May 1, 2023
36d53e0
Merge branch 'master' into add-async-insert-mt-setting
CurtizJ May 1, 2023
6684738
Merge pull request #49146 from ClickHouse/don_t_write_version_file_on…
alesapin May 1, 2023
76a591f
Allow restricted keywords if alias is quoted
evillique May 1, 2023
bbc5577
fix failing tests
mauidude May 1, 2023
e49842f
block setting codec for alias columns
tsolodov May 1, 2023
fc5b078
fix for linter
tsolodov May 1, 2023
631e81c
Respect projections in 01600_parts
KochetovNicolai May 1, 2023
503f099
Merge branch 'master' into master
nikitamikhaylov May 1, 2023
30dd645
add docs for nested dynamic disks
DanRoscigno May 1, 2023
fa4ab93
add dynamic and nested dynamic
DanRoscigno May 1, 2023
a3f9a8b
Fix bug in removal of existing part directory
alesapin May 1, 2023
2b141a1
Apply suggestions from code review
DanRoscigno May 1, 2023
02b7c2f
clearing s3 between tests in a robust way
CheSema Apr 25, 2023
e364757
explicit drop table for tests
CheSema Apr 26, 2023
4ae2a46
add note about other disk types
DanRoscigno May 1, 2023
0f6a4b9
Merge branch 'master' into ttl_on_insert
alesapin May 1, 2023
ff648b7
mute the bug, will open new pr with fix
CheSema May 1, 2023
044cfe5
Remove wrong assertion
kssenii May 1, 2023
0f6a818
Merge pull request #49364 from DanRoscigno/docs-dynamic-disk
kssenii May 1, 2023
550e430
A better way of excluding ISA-L on non-x86
rschu1ze May 1, 2023
6566ed7
removed loop & added tests
tsolodov May 1, 2023
9be60b4
Merge branch 'master' into master
tsolodov May 1, 2023
c7295db
nit
tsolodov May 1, 2023
eb8dd7f
Merge branch 'master' of github.com:tsolodov/ClickHouse
tsolodov May 1, 2023
1ec176c
Update 02725_alias_columns_should_not_allow_compression_codec.sql
nikitamikhaylov May 1, 2023
c1f95f3
few more tests:
tsolodov May 1, 2023
51847fb
Merge pull request #49321 from nickitat/rand_exp
alexey-milovidov May 1, 2023
5013b96
Merge pull request #49355 from ClickHouse/alexey-milovidov-patch-7
alexey-milovidov May 1, 2023
e58a63b
addressing PR comments
tsolodov May 1, 2023
6f2ccd8
Merge pull request #49241 from evillique/decompress-filename
alexey-milovidov May 1, 2023
1267fbc
Merge pull request #48998 from ongkong/fix-join-clause-create-column
alexey-milovidov May 1, 2023
fdaed70
Fix decimal aggregates test for s390x
HarryLeeIBM May 2, 2023
332ff05
Merge branch 'master' into hlee-s390x-dec-agg
hanfei1991 May 2, 2023
50099ca
Merge pull request #49157 from CheSema/fixing-test-merge-tree-s3-2
CheSema May 2, 2023
96d2482
Merge pull request #49365 from ClickHouse/ttl_on_insert
alesapin May 2, 2023
fe81b1f
Merge pull request #48865 from ClickHouse/48380_Force_remove_on_drop
alesapin May 2, 2023
96d109c
Merge pull request #49137 from ClickHouse/vdimir/mutliple_storage_join
vdimir May 2, 2023
1590ba3
Merge pull request #49376 from ClickHouse/kssenii-patch-7
kssenii May 2, 2023
3ec5315
Update Metadata.cpp
kssenii May 2, 2023
f86cede
Merge pull request #49387 from ClickHouse/kssenii-patch-7
kssenii May 2, 2023
ca19f20
Do not fail the run on error updating status comment
Felixoid May 2, 2023
b423e04
Fix the global ROBOT_TOKEN, do not retry unnecessary
Felixoid May 2, 2023
08d203e
Sanitize "Flaky tests", remove trailing dots
Felixoid May 2, 2023
6e08e43
Merge pull request #49318 from ClickHouse/debug-01600_parts-analyzer
KochetovNicolai May 2, 2023
7dab156
Fix printing hung queries in clickhouse-test.
KochetovNicolai May 2, 2023
f695040
Merge pull request #48897 from ClickHouse/keeper-check-not-exists
antonio2368 May 2, 2023
aa4c5fe
Enhancements for background merges (#49313)
nikitamikhaylov May 2, 2023
242a210
Create "CI running" report always
Felixoid May 2, 2023
9c55f6a
Remove 02707_complex_query_fails_analyzer test
novikd May 2, 2023
619b6f2
Fix typo
alesapin May 2, 2023
24a744d
Merge branch 'master' into fix_zero_copy_not_atomic
alesapin May 2, 2023
f061991
move pipe compute into initializePipeline
Apr 29, 2023
397a170
apply comments
May 1, 2023
e4394de
forgot about query_plan
May 1, 2023
046949a
fix names
May 2, 2023
f87c418
Merge pull request #49360 from evillique/alias-restricted-keywords
evillique May 2, 2023
3ab9475
Merge branch 'master' into hlee-s390x-dec-agg
hanfei1991 May 2, 2023
997210c
Merge pull request #48515 from ClickHouse/Clear_marks_cache_for_outda…
SmitaRKulkarni May 2, 2023
b5eddf3
Merge pull request #49382 from HarryLeeIBM/hlee-s390x-dec-agg
hanfei1991 May 2, 2023
a08225d
Fix typo
alesapin May 2, 2023
bccc4d3
Update FileSegment.cpp
kssenii May 2, 2023
f670420
Update WithFileName.cpp
evillique May 2, 2023
98a88be
Merge pull request #49414 from ClickHouse/evillique-patch-1
evillique May 2, 2023
22487de
Fix
kssenii May 2, 2023
46c86dc
Fix bcrypt enum value
evillique May 2, 2023
2aa8619
Merge pull request #48851 from mauidude/date-trunc-return-date-time
evillique May 2, 2023
33cf697
Correctly cleanup sequential node in ZooKeeperWithFaultInjection
vdimir May 2, 2023
8b0f6ed
Add test 02725_keeper_fault_inject_sequential_cleanup
vdimir May 2, 2023
3d76c92
Throw exception for non-parametric functions in new analyzer
novikd May 2, 2023
495325f
fix some bad error messages, suppress others
tavplubix May 2, 2023
b7d641c
Update version_date.tsv and changelogs after v23.4.2.11-stable
robot-clickhouse May 2, 2023
517fcb1
Merge pull request #49422 from ClickHouse/auto/v23.4.2.11-stable
Felixoid May 2, 2023
7075c16
Remove trash
alexey-milovidov May 2, 2023
ae03442
Repro test case
davenger May 2, 2023
6beff3b
Merge pull request #48603 from ilejn/sequence_state_fix
KochetovNicolai May 2, 2023
2e20f2a
Do not skip building set even when reading from remote
davenger May 2, 2023
ac9ef07
Fix
kssenii May 2, 2023
4c038ef
Merge branch 'master' into bcrypt
evillique May 2, 2023
03aa4f7
Merge pull request #49378 from ClickHouse/rs/isa-l
alexey-milovidov May 2, 2023
d4a921b
Merge branch 'master' into fix-assertions
kssenii May 2, 2023
ee9fae6
Merge pull request #49363 from tsolodov/master
alexey-milovidov May 3, 2023
c26ca71
Improve `system.licenses` table
alexey-milovidov May 3, 2023
1d51bc9
Add a test to check max_rows_to_read_leaf behaviour
seandhaynes Apr 20, 2023
d761e24
Do not build keeper-bench if rapidjson was disabled
azat May 3, 2023
2045cf1
Respect ENABLE_LIBRARIES for ISA-L library
azat May 3, 2023
36a190e
Merge pull request #49388 from ClickHouse/improve-ci
Felixoid May 3, 2023
f5b6aa0
Merge pull request #49415 from kssenii/fix-assertions
kssenii May 3, 2023
59401ce
Merge pull request #49411 from ClickHouse/kssenii-patch-7
kssenii May 3, 2023
98d5aed
Fix 02680_mysql_ast_logical_err in analyzer
vdimir May 1, 2023
bd8a0d9
Merge pull request #49362 from ClickHouse/vdimir/analyzer_02680_mysql…
vdimir May 3, 2023
65ab64a
Merge pull request #49418 from ClickHouse/vdimir/keeper_fault_inject_…
vdimir May 3, 2023
887ab23
Merge pull request #49319 from azat/dict/fix-hashed-load_factor
vdimir May 3, 2023
1ec3040
Merge pull request #49420 from ClickHouse/fix_00002
tavplubix May 3, 2023
6388be2
Merge pull request #49326 from k-morozov/refactoring/pipe-into-step
KochetovNicolai May 3, 2023
d3c7054
Merge pull request #49169 from lingtaolf/doc/bloomfilter_compute_func…
vdimir May 3, 2023
6f3f202
Merge branch 'master' into fix_zero_copy_not_atomic
alesapin May 3, 2023
b134ad1
Minified repro case
davenger May 3, 2023
5504475
Merge pull request #49211 from ClickHouse/fix_zero_copy_not_atomic
alesapin May 3, 2023
465bc77
Merge pull request #49389 from ClickHouse/fix-hung-queries-print
KochetovNicolai May 3, 2023
ad69fbb
Fix compiling average example (suppress -Wframe-larger-than) (#49358)
azat May 3, 2023
129d123
Merge pull request #49423 from ClickHouse/remove-trash-7
alesapin May 3, 2023
fad187f
Add image for docker-server jepsen
alesapin May 3, 2023
6e8934f
Improve image for local run
alesapin May 3, 2023
19048ed
Merge branch 'master' into master
hanfei1991 May 3, 2023
810568f
Merge pull request #49433 from ClickHouse/improve-licenses
alexey-milovidov May 3, 2023
695b5b9
Merge pull request #48950 from seandhaynes/master
hanfei1991 May 3, 2023
17d6e2c
Merge pull request #49452 from ClickHouse/add_server_jepsen_image
alesapin May 3, 2023
7896d30
Merge pull request #49122 from CurtizJ/add-async-insert-mt-setting
CurtizJ May 3, 2023
048b4ec
Merge branch 'master' into bcrypt
evillique May 3, 2023
b921476
Merge pull request #49419 from ClickHouse/fix-function-parameter-exce…
novikd May 3, 2023
468b555
Merge branch 'master' into fix-analyzer-tests
novikd May 3, 2023
11d4ce8
Merge pull request #44905 from evillique/bcrypt
evillique May 3, 2023
e399903
Merge pull request #48548 from ClickHouse/clusters_is_active_column
tavplubix May 3, 2023
5c72bdc
Merge pull request #49403 from ClickHouse/fix-analyzer-tests
novikd May 3, 2023
d5ccc99
add map to list of unsupported nullable types
candiduslynx May 3, 2023
01ed70a
Fix possible logical error "Cannot cancel. Either no query sent or al…
Avogar May 3, 2023
954e3b7
Speedup outdated parts loading (#49317)
nikitamikhaylov May 3, 2023
9d2a27c
Invert shutdown_wait_unfinished_queries (#49427)
thevar1able May 3, 2023
c9705d6
Merging #49066 (Better error handling during loading of parts) (#49430)
CurtizJ May 3, 2023
be7bb02
Mark all versions after the last supported as *
Felixoid May 3, 2023
01b1a9f
Regenerate SECURITY.md to shorten it
Felixoid May 3, 2023
6235124
Merge pull request #49467 from ClickHouse/shorten-supported-versions
Felixoid May 3, 2023
2924837
Fix Attaching a table with non-existent ZK path does not increase the…
wzb5212 May 3, 2023
a90c2ec
Merge pull request #49425 from ClickHouse/fix_build_set_with_remote
davenger May 3, 2023
c799bcf
Merge pull request #49437 from azat/build/disable-libraries-fixes
alexey-milovidov May 3, 2023
9a67616
Merge pull request #49460 from candiduslynx/patch-1
robot-ch-test-poll2 May 3, 2023
fc18d8b
add InnerShuffleScatterTransform/InnerShuffleGatherTransform
lgbo-ustc Mar 9, 2023
39d8722
add InnerShuffleStep
lgbo-ustc Mar 9, 2023
2183980
add partition hash join
lgbo-ustc Mar 10, 2023
7575137
update pipeline builder
lgbo-ustc Mar 10, 2023
366a726
update partition hash join
lgbo-ustc Mar 15, 2023
50122c4
replace concurrent hash join
lgbo-ustc Mar 15, 2023
c0e03bd
add performace test
lgbo-ustc Mar 16, 2023
556a101
update getTotalByteCount/getTotalRowCount
lgbo-ustc Mar 16, 2023
7ddf3bc
fixed typos
lgbo-ustc Mar 16, 2023
44ca8f6
merge master code
lgbo-ustc Mar 16, 2023
289d94f
update test cases, add order by and remove format
lgbo-ustc Mar 17, 2023
1f8c82d
fixed bugs found ci fast test
lgbo-ustc Mar 20, 2023
ec338d3
update test cases
lgbo-ustc Mar 20, 2023
24ce4d3
add order by for test cases
lgbo-ustc Mar 23, 2023
9770504
fixed executing hungup
lgbo-ustc Mar 25, 2023
eec8b86
update
lgbo-ustc Apr 25, 2023
dcf8d30
update
lgbo-ustc Apr 25, 2023
a8cb813
too large threads will slow down
lgbo-ustc Apr 25, 2023
8c55eba
efficient shuffle dag
lgbo-ustc Apr 27, 2023
5243326
clean deprecated codes
lgbo-ustc May 4, 2023
429db75
fixed bugs
lgbo-ustc May 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@
[submodule "contrib/qpl"]
path = contrib/qpl
url = https://github.com/intel/qpl
[submodule "contrib/idxd-config"]
path = contrib/idxd-config
url = https://github.com/intel/idxd-config
[submodule "contrib/wyhash"]
path = contrib/wyhash
url = https://github.com/wangyi-fudan/wyhash
Expand Down Expand Up @@ -296,6 +293,9 @@
[submodule "contrib/libdivide"]
path = contrib/libdivide
url = https://github.com/ridiculousfish/libdivide
[submodule "contrib/libbcrypt"]
path = contrib/libbcrypt
url = https://github.com/rg3/libbcrypt.git
[submodule "contrib/ulid-c"]
path = contrib/ulid-c
url = https://github.com/ClickHouse/ulid-c.git
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 2023 Changelog

### <a id="234"></a> ClickHouse release 23.4 LTS, 2023-04-26
### <a id="234"></a> ClickHouse release 23.4, 2023-04-26

#### Backward Incompatible Change
* Formatter '%M' in function formatDateTime() now prints the month name instead of the minutes. This makes the behavior consistent with MySQL. The previous behavior can be restored using setting "formatdatetime_parsedatetime_m_is_month_name = 0". [#47246](https://github.com/ClickHouse/ClickHouse/pull/47246) ([Robert Schulze](https://github.com/rschu1ze)).
Expand Down
12 changes: 3 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,6 @@ else ()
set(NO_WHOLE_ARCHIVE --no-whole-archive)
endif ()

option(ENABLE_CURL_BUILD "Enable curl, azure, sentry build on by default except MacOS." ON)
if (OS_DARWIN)
# Disable the curl, azure, senry build on MacOS
set (ENABLE_CURL_BUILD OFF)
endif ()

if (NOT CMAKE_BUILD_TYPE_UC STREQUAL "RELEASE")
# Can be lld or ld-lld or lld-13 or /path/to/lld.
if (LINKER_NAME MATCHES "lld")
Expand Down Expand Up @@ -393,9 +387,9 @@ else()
endif ()

option (ENABLE_GWP_ASAN "Enable Gwp-Asan" ON)
# We use mmap for allocations more heavily in debug builds,
# but GWP-ASan also wants to use mmap frequently,
# and due to a large number of memory mappings,
# We use mmap for allocations more heavily in debug builds,
# but GWP-ASan also wants to use mmap frequently,
# and due to a large number of memory mappings,
# it does not work together well.
if ((NOT OS_LINUX AND NOT OS_ANDROID) OR (CMAKE_BUILD_TYPE_UC STREQUAL "DEBUG"))
set(ENABLE_GWP_ASAN OFF)
Expand Down
8 changes: 1 addition & 7 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@ The following versions of ClickHouse server are currently being supported with s
| 22.10 | ❌ |
| 22.9 | ❌ |
| 22.8 | ✔️ |
| 22.7 | ❌ |
| 22.6 | ❌ |
| 22.5 | ❌ |
| 22.4 | ❌ |
| 22.3 | ❌ |
| 22.2 | ❌ |
| 22.1 | ❌ |
| 22.* | ❌ |
| 21.* | ❌ |
| 20.* | ❌ |
| 19.* | ❌ |
Expand Down
3 changes: 2 additions & 1 deletion base/harmful/harmful.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ TRAP(argp_state_help)
TRAP(argp_usage)
TRAP(asctime)
TRAP(clearenv)
TRAP(crypt)
// Redefined at contrib/libbcrypt/crypt_blowfish/wrapper.c:186
// TRAP(crypt)
TRAP(ctime)
TRAP(cuserid)
TRAP(drand48)
Expand Down
4 changes: 0 additions & 4 deletions cmake/fuzzer.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ if (FUZZER)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SAN_FLAGS} -fsanitize=fuzzer-no-link")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SAN_FLAGS} -fsanitize=fuzzer-no-link")

if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=fuzzer-no-link")
endif()

# NOTE: oss-fuzz can change LIB_FUZZING_ENGINE variable
if (NOT LIB_FUZZING_ENGINE)
set (LIB_FUZZING_ENGINE "-fsanitize=fuzzer")
Expand Down
37 changes: 3 additions & 34 deletions cmake/sanitize.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,49 +16,24 @@ if (SANITIZE)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SAN_FLAGS} ${ASAN_FLAGS}")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SAN_FLAGS} ${ASAN_FLAGS}")

if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${ASAN_FLAGS}")
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libasan")
endif ()

elseif (SANITIZE STREQUAL "memory")
# MemorySanitizer flags are set according to the official documentation:
# https://clang.llvm.org/docs/MemorySanitizer.html#usage
#
# For now, it compiles with `cmake -DSANITIZE=memory -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS_ADD="-O1" -DCMAKE_C_FLAGS_ADD="-O1"`
# Compiling with -DCMAKE_BUILD_TYPE=Debug leads to ld.lld failures because
# of large files (was not tested with ld.gold). This is why we compile with
# RelWithDebInfo, and downgrade optimizations to -O1 but not to -Og, to
# keep the binary size down.
# TODO: try compiling with -Og and with ld.gold.

# Linking can fail due to relocation overflows (see #49145), caused by too big object files / libraries.
# Work around this with position-independent builds (-fPIC and -fpie), this is slightly slower than non-PIC/PIE but that's okay.
set (MSAN_FLAGS "-fsanitize=memory -fsanitize-memory-use-after-dtor -fsanitize-memory-track-origins -fno-optimize-sibling-calls -fPIC -fpie -fsanitize-blacklist=${CMAKE_SOURCE_DIR}/tests/msan_suppressions.txt")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SAN_FLAGS} ${MSAN_FLAGS}")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SAN_FLAGS} ${MSAN_FLAGS}")

if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=memory")
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libmsan")
endif ()

elseif (SANITIZE STREQUAL "thread")
set (TSAN_FLAGS "-fsanitize=thread")
if (COMPILER_CLANG)
set (TSAN_FLAGS "${TSAN_FLAGS} -fsanitize-blacklist=${CMAKE_SOURCE_DIR}/tests/tsan_suppressions.txt")
endif()


set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SAN_FLAGS} ${TSAN_FLAGS}")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SAN_FLAGS} ${TSAN_FLAGS}")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=thread")
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libtsan")
endif ()

elseif (SANITIZE STREQUAL "undefined")
set (UBSAN_FLAGS "-fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=float-divide-by-zero")
Expand All @@ -77,12 +52,6 @@ if (SANITIZE)

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SAN_FLAGS} ${UBSAN_FLAGS}")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SAN_FLAGS} ${UBSAN_FLAGS}")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=undefined")
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libubsan")
endif ()

# llvm-tblgen, that is used during LLVM build, doesn't work with UBSan.
set (ENABLE_EMBEDDED_COMPILER 0 CACHE BOOL "")
Expand Down
15 changes: 5 additions & 10 deletions contrib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,20 +141,19 @@ add_contrib (libuv-cmake libuv)
add_contrib (liburing-cmake liburing)
add_contrib (amqpcpp-cmake AMQP-CPP) # requires: libuv
add_contrib (cassandra-cmake cassandra) # requires: libuv

if (ENABLE_CURL_BUILD)
if (NOT OS_DARWIN)
add_contrib (curl-cmake curl)
add_contrib (azure-cmake azure)
add_contrib (sentry-native-cmake sentry-native) # requires: curl
endif()

add_contrib (fmtlib-cmake fmtlib)
add_contrib (krb5-cmake krb5)
add_contrib (cyrus-sasl-cmake cyrus-sasl) # for krb5
add_contrib (libgsasl-cmake libgsasl) # requires krb5
add_contrib (librdkafka-cmake librdkafka) # requires: libgsasl
add_contrib (nats-io-cmake nats-io)
add_contrib (libhdfs3-cmake libhdfs3) # requires: protobuf, krb5
add_contrib (isa-l-cmake isa-l)
add_contrib (libhdfs3-cmake libhdfs3) # requires: protobuf, krb5, isa-l
add_contrib (hive-metastore-cmake hive-metastore) # requires: thrift/avro/arrow/libhdfs3
add_contrib (cppkafka-cmake cppkafka)
add_contrib (libpqxx-cmake libpqxx)
Expand All @@ -178,21 +177,17 @@ add_contrib (s2geometry-cmake s2geometry)
add_contrib (c-ares-cmake c-ares)
add_contrib (qpl-cmake qpl)
add_contrib (morton-nd-cmake morton-nd)

if (ARCH_S390X)
add_contrib(crc32-s390x-cmake crc32-s390x)
endif()

add_contrib (annoy-cmake annoy)

add_contrib (xxHash-cmake xxHash)

add_contrib (google-benchmark-cmake google-benchmark)
add_contrib (libbcrypt-cmake libbcrypt)

add_contrib (google-benchmark-cmake google-benchmark)
add_contrib (ulid-c-cmake ulid-c)

add_contrib (isa-l-cmake isa-l)

# Put all targets defined here and in subdirectories under "contrib/<immediate-subdir>" folders in GUI-based IDEs.
# Some of third-party projects may override CMAKE_FOLDER or FOLDER property of their targets, so they would not appear
# in "contrib/..." as originally planned, so we workaround this by fixing FOLDER properties of all targets manually,
Expand Down
2 changes: 1 addition & 1 deletion contrib/curl
Submodule curl updated 2579 files
13 changes: 8 additions & 5 deletions contrib/curl-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ set (SRCS
"${LIBRARY_DIR}/lib/noproxy.c"
"${LIBRARY_DIR}/lib/idn.c"
"${LIBRARY_DIR}/lib/cfilters.c"
"${LIBRARY_DIR}/lib/cf-socket.c"
"${LIBRARY_DIR}/lib/cf-haproxy.c"
"${LIBRARY_DIR}/lib/cf-https-connect.c"
"${LIBRARY_DIR}/lib/file.c"
"${LIBRARY_DIR}/lib/timeval.c"
"${LIBRARY_DIR}/lib/base64.c"
Expand All @@ -37,8 +40,8 @@ set (SRCS
"${LIBRARY_DIR}/lib/strcase.c"
"${LIBRARY_DIR}/lib/easy.c"
"${LIBRARY_DIR}/lib/curl_fnmatch.c"
"${LIBRARY_DIR}/lib/curl_log.c"
"${LIBRARY_DIR}/lib/fileinfo.c"
"${LIBRARY_DIR}/lib/wildcard.c"
"${LIBRARY_DIR}/lib/krb5.c"
"${LIBRARY_DIR}/lib/memdebug.c"
"${LIBRARY_DIR}/lib/http_chunks.c"
Expand Down Expand Up @@ -96,6 +99,7 @@ set (SRCS
"${LIBRARY_DIR}/lib/rand.c"
"${LIBRARY_DIR}/lib/curl_multibyte.c"
"${LIBRARY_DIR}/lib/conncache.c"
"${LIBRARY_DIR}/lib/cf-h1-proxy.c"
"${LIBRARY_DIR}/lib/http2.c"
"${LIBRARY_DIR}/lib/smb.c"
"${LIBRARY_DIR}/lib/curl_endian.c"
Expand All @@ -113,12 +117,13 @@ set (SRCS
"${LIBRARY_DIR}/lib/altsvc.c"
"${LIBRARY_DIR}/lib/socketpair.c"
"${LIBRARY_DIR}/lib/bufref.c"
"${LIBRARY_DIR}/lib/bufq.c"
"${LIBRARY_DIR}/lib/dynbuf.c"
"${LIBRARY_DIR}/lib/dynhds.c"
"${LIBRARY_DIR}/lib/hsts.c"
"${LIBRARY_DIR}/lib/http_aws_sigv4.c"
"${LIBRARY_DIR}/lib/mqtt.c"
"${LIBRARY_DIR}/lib/rename.c"
"${LIBRARY_DIR}/lib/h2h3.c"
"${LIBRARY_DIR}/lib/headers.c"
"${LIBRARY_DIR}/lib/timediff.c"
"${LIBRARY_DIR}/lib/vauth/vauth.c"
Expand All @@ -133,6 +138,7 @@ set (SRCS
"${LIBRARY_DIR}/lib/vauth/oauth2.c"
"${LIBRARY_DIR}/lib/vauth/spnego_gssapi.c"
"${LIBRARY_DIR}/lib/vauth/spnego_sspi.c"
"${LIBRARY_DIR}/lib/vquic/vquic.c"
"${LIBRARY_DIR}/lib/vtls/openssl.c"
"${LIBRARY_DIR}/lib/vtls/gtls.c"
"${LIBRARY_DIR}/lib/vtls/vtls.c"
Expand All @@ -147,9 +153,6 @@ set (SRCS
"${LIBRARY_DIR}/lib/vtls/keylog.c"
"${LIBRARY_DIR}/lib/vtls/x509asn1.c"
"${LIBRARY_DIR}/lib/vtls/hostcheck.c"
"${LIBRARY_DIR}/lib/vquic/ngtcp2.c"
"${LIBRARY_DIR}/lib/vquic/quiche.c"
"${LIBRARY_DIR}/lib/vquic/msh3.c"
"${LIBRARY_DIR}/lib/vssh/libssh2.c"
"${LIBRARY_DIR}/lib/vssh/libssh.c"
)
Expand Down
1 change: 0 additions & 1 deletion contrib/idxd-config
Submodule idxd-config deleted from f6605c
19 changes: 18 additions & 1 deletion contrib/isa-l-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
option(ENABLE_ISAL_LIBRARY "Enable ISA-L library" ${ENABLE_LIBRARIES})
if (ARCH_AARCH64)
# Disable ISA-L libray on aarch64.
set (ENABLE_ISAL_LIBRARY OFF)
endif ()

if (NOT ENABLE_ISAL_LIBRARY)
message(STATUS "Not using isa-l")
return()
endif()

set(ISAL_SOURCE_DIR "${ClickHouse_SOURCE_DIR}/contrib/isa-l")

# check nasm compiler
# The YASM and NASM assembers are somewhat mutually compatible. ISAL specifically needs NASM. If only YASM is installed, then check_language(ASM_NASM)
# below happily finds YASM, leading to weird errors at build time. Therefore, do an explicit check for NASM here.
find_program(NASM_PATH NAMES nasm)
if (NOT NASM_PATH)
message(FATAL_ERROR "Please install NASM from 'https://www.nasm.us/' because NASM compiler can not be found!")
endif ()

include(CheckLanguage)
check_language(ASM_NASM)
if(NOT CMAKE_ASM_NASM_COMPILER)
Expand Down
1 change: 1 addition & 0 deletions contrib/libbcrypt
Submodule libbcrypt added at 8aa32a
19 changes: 19 additions & 0 deletions contrib/libbcrypt-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
option(ENABLE_BCRYPT "Enable bcrypt" ${ENABLE_LIBRARIES})

if (NOT ENABLE_BCRYPT)
message(STATUS "Not using bcrypt")
return()
endif()

set (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/libbcrypt")

set(SRCS
"${LIBRARY_DIR}/bcrypt.c"
"${LIBRARY_DIR}/crypt_blowfish/crypt_blowfish.c"
"${LIBRARY_DIR}/crypt_blowfish/crypt_gensalt.c"
"${LIBRARY_DIR}/crypt_blowfish/wrapper.c"
)

add_library(_bcrypt ${SRCS})
target_include_directories(_bcrypt SYSTEM PUBLIC "${LIBRARY_DIR}")
add_library(ch_contrib::bcrypt ALIAS _bcrypt)
6 changes: 4 additions & 2 deletions contrib/libhdfs3-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ if (TARGET OpenSSL::SSL)
target_link_libraries(_hdfs3 PRIVATE OpenSSL::Crypto OpenSSL::SSL)
endif()

target_link_libraries(_hdfs3 PRIVATE ch_contrib::isal)
add_definitions(-DHADOOP_ISAL_LIBRARY)
if (TARGET ch_contrib::isal)
target_link_libraries(_hdfs3 PRIVATE ch_contrib::isal)
add_definitions(-DHADOOP_ISAL_LIBRARY)
endif()

add_library(ch_contrib::hdfs ALIAS _hdfs3)

Expand Down
7 changes: 6 additions & 1 deletion docker/images.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@
"docker/test/stateless",
"docker/test/integration/base",
"docker/test/fuzzer",
"docker/test/keeper-jepsen"
"docker/test/keeper-jepsen",
"docker/test/server-jepsen"
]
},
"docker/test/integration/kerberized_hadoop": {
Expand All @@ -139,6 +140,10 @@
"name": "clickhouse/keeper-jepsen-test",
"dependent": []
},
"docker/test/server-jepsen": {
"name": "clickhouse/server-jepsen-test",
"dependent": []
},
"docker/test/install/deb": {
"name": "clickhouse/install-deb-test",
"dependent": []
Expand Down
2 changes: 1 addition & 1 deletion docker/keeper/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN arch=${TARGETARCH:-amd64} \
esac

ARG REPOSITORY="https://s3.amazonaws.com/clickhouse-builds/22.4/31c367d3cd3aefd316778601ff6565119fe36682/package_release"
ARG VERSION="23.4.1.1943"
ARG VERSION="23.4.2.11"
ARG PACKAGES="clickhouse-keeper"

# user/group precreated explicitly with fixed uid/gid on purpose.
Expand Down
2 changes: 1 addition & 1 deletion docker/server/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN arch=${TARGETARCH:-amd64} \
# lts / testing / prestable / etc
ARG REPO_CHANNEL="stable"
ARG REPOSITORY="https://packages.clickhouse.com/tgz/${REPO_CHANNEL}"
ARG VERSION="23.4.1.1943"
ARG VERSION="23.4.2.11"
ARG PACKAGES="clickhouse-client clickhouse-server clickhouse-common-static"

# user/group precreated explicitly with fixed uid/gid on purpose.
Expand Down
2 changes: 1 addition & 1 deletion docker/server/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN sed -i "s|http://archive.ubuntu.com|${apt_archive}|g" /etc/apt/sources.list

ARG REPO_CHANNEL="stable"
ARG REPOSITORY="deb https://packages.clickhouse.com/deb ${REPO_CHANNEL} main"
ARG VERSION="23.4.1.1943"
ARG VERSION="23.4.2.11"
ARG PACKAGES="clickhouse-client clickhouse-server clickhouse-common-static"

# set non-empty deb_location_url url to create a docker image
Expand Down
2 changes: 2 additions & 0 deletions docker/test/server-jepsen/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ ENV TESTS_TO_RUN="8"
ENV TIME_LIMIT="30"

ENV KEEPER_NODE=""
ENV NEMESIS=""
ENV WORKLOAD=""


# volumes
Expand Down
Loading