Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
04ad089
Backport #102360 to 26.3: fix data race for ast in database memory on…
robot-clickhouse Apr 22, 2026
2b93db4
Backport #101403 to 26.3: Fix mutation UPDATE SET DateTime literal no…
robot-clickhouse Apr 22, 2026
efce815
Backport #103858 to 26.3: Fix data part check and consistency check f…
robot-clickhouse May 2, 2026
be638bc
Backport #100758 to 26.3: Erase sorted_dynamic_paths entries before d…
robot-clickhouse May 4, 2026
67caa16
Backport #102884 to 26.3: Optimization for deferring row policy and P…
robot-clickhouse May 4, 2026
4849292
Update autogenerated version to 26.3.10.62 and contributors
robot-clickhouse May 7, 2026
1592c74
Backport #104133 to 26.3: Fix numerous semantic inconsistency with `o…
robot-clickhouse May 8, 2026
7f43038
Backport #103708 to 26.3: Fix skip-index matching for ALIAS columns w…
robot-clickhouse May 8, 2026
1269501
Update autogenerated version to 26.3.10.60 and contributors
robot-clickhouse May 8, 2026
10d03b5
Merge pull request #104340 from ClickHouse/backport/26.3/104133
nihalzp May 8, 2026
f07e599
Revert "Update autogenerated version to 26.3.10.60 and contributors"
maxknv May 8, 2026
420f1e8
Merge pull request #104380 from ClickHouse/revert_wrong_release_commit
Felixoid May 8, 2026
c2c7c0a
Backport #103384 to 26.3: Make a decision to skip backup of the targe…
robot-clickhouse May 8, 2026
25a39b7
Backport #101504 to 26.3: Fix join reorder pushing INNER JOIN conditi…
robot-clickhouse May 8, 2026
1cd3cf2
Merge pull request #103902 from ClickHouse/backport/26.3/103858
fm4v May 9, 2026
a19fe3c
Backport #100375 to 26.3: Fix Not-ready Set exception when IN subquer…
robot-clickhouse May 9, 2026
1b5dd29
Backport #104317 to 26.3: Fix projection matching regression from `re…
robot-clickhouse May 9, 2026
41e608b
Merge pull request #104481 from ClickHouse/backport/26.3/104317
fm4v May 10, 2026
95c14f2
Merge pull request #104471 from ClickHouse/backport/26.3/100375
fm4v May 10, 2026
5d832f6
Merge pull request #104384 from ClickHouse/backport/26.3/103384
fm4v May 11, 2026
4665533
Merge pull request #104365 from ClickHouse/backport/26.3/103708
CurtizJ May 11, 2026
b4dfe08
Backport fix for IPv6StringToNumOrDefault to 26.3
Avogar May 11, 2026
68d5adc
Backport #103277 to 26.3: Fix data race in dictionaries
robot-clickhouse May 11, 2026
b8baac1
Backport #104065 to 26.3: Refreshable MV: relax sanity checks in SECO…
robot-clickhouse May 12, 2026
4e2c591
Backport #104229 to 26.3: Fix int32_t overflow in `lowerUTF8`/`upperU…
robot-clickhouse May 12, 2026
5cb0855
Merge pull request #104687 from ClickHouse/backport/26.3/104065
fm4v May 12, 2026
0a9dc9b
Merge pull request #104406 from ClickHouse/backport/26.3/101504
vdimir May 12, 2026
4fbe502
Merge pull request #104026 from ClickHouse/backport/26.3/100758
Avogar May 12, 2026
c72d063
Backport #104678 to 26.3: Revert "Fix data part check and consistency…
robot-clickhouse May 12, 2026
9f48636
Merge pull request #104574 from Avogar/backport/26.3/93543
Avogar May 12, 2026
799bb75
Merge pull request #104702 from ClickHouse/backport/26.3/104229
alexey-milovidov May 12, 2026
f68d64b
Backport #104322 to 26.3: fixing a possible underflow while parsing p…
robot-clickhouse May 12, 2026
07766f8
Merge pull request #104760 from ClickHouse/backport/26.3/104322
grantholly-clickhouse May 13, 2026
3885d75
Merge pull request #104727 from ClickHouse/backport/26.3/104678
nihalzp May 13, 2026
31d9847
Backport #104751 to 26.3: Fix use-after-free in `AvroConfluentRowInpu…
robot-clickhouse May 13, 2026
271f51c
Merge pull request #103343 from ClickHouse/backport/26.3/102360
fm4v May 13, 2026
97fe7b0
Merge pull request #104846 from ClickHouse/backport/26.3/104751
mstetsyuk May 13, 2026
29069be
Merge pull request #104618 from ClickHouse/backport/26.3/103277
fm4v May 14, 2026
965bab7
Backport #101484 to 26.3: Add missing Keeper component tracking guard…
robot-clickhouse May 14, 2026
0fb5eeb
Backport #104673 to 26.3: Fix data race in FutureSetFromTuple
robot-clickhouse May 14, 2026
e993f66
Merge pull request #104938 from ClickHouse/backport/26.3/101484
Algunenano May 15, 2026
d0f294a
Merge pull request #104958 from ClickHouse/backport/26.3/104673
mstetsyuk May 15, 2026
54ccc45
Backport #98827 to 26.3: Implement http header validation for DataLak…
robot-clickhouse May 15, 2026
b442640
Merge pull request #105017 from ClickHouse/backport/26.3/98827
Algunenano May 15, 2026
29e7e94
Backport #104705 to 26.3: Add `defer_partition_pruning_after_final` s…
robot-clickhouse May 15, 2026
5b2f9da
Backport #101932 to 26.3: Fix materialize_skip_indexes_on_merge not s…
robot-clickhouse May 15, 2026
37c84de
Backport #103890 to 26.3: Fix use-after-free in KeeperHandlingConsume…
robot-clickhouse May 15, 2026
fe2c36e
Merge pull request #105081 from ClickHouse/backport/26.3/103890
antaljanosbenjamin May 15, 2026
363bc1e
Backport #105048 to 26.3: JIT: register __fixunssfti / __fixunsdfti f…
robot-clickhouse May 16, 2026
1c99a07
Merge pull request #105096 from ClickHouse/backport/26.3/105048
alexey-milovidov May 16, 2026
b844b14
Merge pull request #105063 from ClickHouse/backport/26.3/104705
fm4v May 16, 2026
1ce7df4
Backport #101580 to 26.3: Fix flaky test 03706_statistics_preserve_ch…
robot-clickhouse May 18, 2026
4b6bf90
Backport #103536 to 26.3: Fix heap-use-after-free in `executeAggregat…
robot-clickhouse May 18, 2026
55fb72f
Backport #104663 to 26.3: Fix Keeper termination on get `/keeper/avai…
robot-clickhouse May 18, 2026
fac697a
Backport #104888 to 26.3: Fix data part consistency checks for types …
robot-clickhouse May 18, 2026
173a7cc
Backport #104009 to 26.3: Fix SQL injection in ExternalQueryBuilder v…
robot-ch-test-poll1 May 19, 2026
e195d92
Merge pull request #105236 from ClickHouse/backport/26.3/104663
antonio2368 May 19, 2026
b6efd5e
Merge pull request #105206 from ClickHouse/backport/26.3/101580
Algunenano May 19, 2026
e9cdf9d
Merge pull request #105216 from ClickHouse/backport/26.3/103536
Algunenano May 19, 2026
5c6f600
Merge pull request #104034 from ClickHouse/backport/26.3/102884
yariks5s May 19, 2026
50e2fac
Merge pull request #105271 from ClickHouse/backport/26.3/104888
Avogar May 19, 2026
be8e4da
Backport #104610 to 26.3: Use restore Keeper retries for restored parts
robot-clickhouse May 19, 2026
9b5a0a0
Backport #102064 to 26.3: Fix incorrect results for RIGHT ANY JOIN
robot-clickhouse May 19, 2026
8fc1a97
Backport #102417 to 26.3: Check for stack overflow in Avro reader
robot-clickhouse May 19, 2026
e84fd35
Merge pull request #105343 from ClickHouse/backport/26.3/104610
pamarcos May 20, 2026
692332c
Merge pull request #105364 from ClickHouse/backport/26.3/102064
vdimir May 20, 2026
e6bc9b7
Fix `contrib/avro` submodule pointer for stack overflow protection
Avogar May 20, 2026
e2e79bb
Backport #102975 to 26.3: Use `INCORRECT_DATA` instead of logical err…
robot-clickhouse May 21, 2026
b5c068a
Merge pull request #105379 from ClickHouse/backport/26.3/102417
Avogar May 21, 2026
26e3465
Backport #104881 to 26.3: Use explicit flag for secondary on cluster …
robot-clickhouse May 21, 2026
705eb74
Backport #105492 to 26.3: Skip test_numbers_check on release branches
robot-clickhouse May 21, 2026
3a04d41
Backport #103148 to 26.3: Fix backward compatibility break in sendPro…
robot-clickhouse May 22, 2026
ac5a410
Merge pull request #105597 from ClickHouse/backport/26.3/105492
Algunenano May 22, 2026
207874d
Backport #105449 to 26.3: Fix heap-buffer-overflow and null-pointer d…
robot-clickhouse May 22, 2026
fa3aa24
Merge pull request #105611 from ClickHouse/backport/26.3/103148
fm4v May 22, 2026
c13b94c
Fix geoparquet metadata handling in Arrow IPC format
Algunenano May 22, 2026
e44ae6e
Update autogenerated version to 26.3.11.36 and contributors
robot-clickhouse May 22, 2026
d77e3c1
Merge pull request #105575 from ClickHouse/backport/26.3/104881
tavplubix May 22, 2026
d23c753
Merge pull request #105620 from ClickHouse/backport/26.3/105449
Algunenano May 22, 2026
3686470
Backport #105636 to 26.3: Fix test_mysql_dotnet_client by anchoring t…
robot-clickhouse May 22, 2026
721f244
Backport #105381 to 26.3: Refresh AWS STS credentials mid-query when …
robot-clickhouse May 22, 2026
84163ef
Backport #103035 to 26.3: Fix cast_string_to_date_time_mode being ign…
robot-clickhouse May 22, 2026
42769ca
Update autogenerated version to 26.3.12.3 and contributors
robot-clickhouse May 22, 2026
4259fc3
Fix 04229_defer_partition_pruning_after_final test on 26.3
fm4v May 22, 2026
8a03709
Merge pull request #105074 from ClickHouse/backport/26.3/101932
fm4v May 22, 2026
1f9ca07
Merge pull request #105681 from ClickHouse/fix/04229-explain-pattern-…
fm4v May 23, 2026
8b52834
Backport #105637 to 26.3: Make `apply_row_policy_after_final` consist…
robot-clickhouse May 23, 2026
c04e83b
Merge pull request #105656 from ClickHouse/backport/26.3/105636
Algunenano May 23, 2026
ae54578
Delete aspell-dict.txt (removed in master)
alexey-milovidov May 24, 2026
4261d20
Switch to in-place {true, true} updates for apply_row_policy_after_final
fm4v May 24, 2026
303a54e
Backport #105559 to 26.3: Fix crash in replxx due to hitting FD_SETSI…
robot-clickhouse May 24, 2026
ce6b9e3
Merge pull request #105695 from ClickHouse/backport/26.3/105637
fm4v May 24, 2026
b2c2931
Merge pull request #105673 from ClickHouse/backport/26.3/103035
fm4v May 24, 2026
e8fed7d
Merge pull request #105510 from ClickHouse/backport/26.3/102975
fm4v May 25, 2026
0fc43bb
Merge pull request #105745 from ClickHouse/backport/26.3/105559
fm4v May 25, 2026
6b0cd20
Merge branch '26.3' into backport/26.3/105381
fm4v May 25, 2026
1bcee9e
Backport #101292 to 26.3: Fix UBSan in MergeTreeDataPartWriterCompact…
robot-clickhouse May 25, 2026
3e44216
Merge pull request #105786 from ClickHouse/backport/26.3/101292
Algunenano May 25, 2026
1387b69
Backport #104051 to 26.3: Refreshable MV: avoid duplicate refresh on …
robot-ch-test-poll2 May 25, 2026
242125b
Backport #103252 to 26.3: Add SYSTEM PAUSE VIEW and SYSTEM PAUSE VIEW…
robot-ch-test-poll2 May 25, 2026
94878ee
Backport #103268 to 26.3: Fix data loss on HDFS writes: flush buffer …
robot-clickhouse May 25, 2026
95a4a98
Backport #105686 to 26.3: Do not attribute skip-index-filtered marks …
robot-clickhouse May 25, 2026
924fdf8
Merge pull request #105810 from ClickHouse/backport/26.3/105686
fm4v May 26, 2026
17384a4
Backport #105776 to 26.3: Reject empty or NUL-containing MongoDB coll…
robot-clickhouse May 26, 2026
8f5646f
Merge pull request #105834 from ClickHouse/backport/26.3/105776
Algunenano May 26, 2026
0dd80da
Backport #105470 to 26.3: Fix segfault in `uniqStateOrNull` with `WIT…
robot-clickhouse May 26, 2026
15ab0a9
Backport #105461 to 26.3: Fix dictGetOrDefault with Nullable default …
robot-clickhouse May 26, 2026
2884e73
removing ebug logging line that might expose a secret
grantholly-clickhouse May 26, 2026
dd94fc7
Merge pull request #105668 from ClickHouse/backport/26.3/105381
grantholly-clickhouse May 27, 2026
6ebec94
Backport #104300 to 26.3: Update mongo-c-driver to 2.3.0
robot-clickhouse May 27, 2026
8586e5d
Merge pull request #105932 from ClickHouse/backport/26.3/104300
Algunenano May 27, 2026
8dacf35
Merge pull request #105880 from ClickHouse/backport/26.3/105461
Algunenano May 27, 2026
5fbf783
Merge pull request #105872 from ClickHouse/backport/26.3/105470
Algunenano May 27, 2026
6656e80
Backport #105584 to 26.3: Honor cast_string_to_date_time_mode for hiv…
robot-clickhouse May 27, 2026
fc586c9
Backport #105535 to 26.3: Fix SEGFAULT in `singleValueOrNull` deseria…
robot-clickhouse May 27, 2026
50e1d38
Backport #105384 to 26.3: Fix set skip index throwing "It's a bug!" o…
robot-clickhouse May 27, 2026
5c3fc4a
Backport #101218 to 26.3: Fix `NOT_FOUND_COLUMN_IN_BLOCK` error when …
robot-clickhouse May 27, 2026
36d94b4
Backport #104416 to 26.3: Hide MySQL and PostgreSQL databases from sy…
robot-clickhouse May 28, 2026
5839e37
Backport #105894 to 26.3: Fix `IN Array` with negative values for dis…
robot-clickhouse May 28, 2026
a7b453b
Fix backport build break and trim SettingsHistory entry
Copilot May 28, 2026
3351c23
Remove stale `allow_experimental_geo_types_in_iceberg` setting
pamarcos May 29, 2026
2710d0a
Align Glue `system.databases` test with master
pamarcos May 29, 2026
5608bf8
Adapt `04210` to 26.3 test runner
pamarcos May 29, 2026
3556309
Backport #106105 to 26.3: Fix `system.dictionaries` returning 0 rows …
robot-clickhouse May 29, 2026
f7b423b
Backport #105302 to 26.3: Fix azure init params
robot-clickhouse May 29, 2026
10df2e7
Backport #106109 to 26.3: Fix DeltaLake delta-kernel-rs FFI server cr…
robot-clickhouse May 30, 2026
df76738
Merge pull request #105977 from ClickHouse/backport/26.3/105384
alexey-milovidov May 31, 2026
8db949c
Merge pull request #106142 from ClickHouse/backport/26.3/105302
alexey-milovidov May 31, 2026
3f4fa57
Merge pull request #106130 from ClickHouse/backport/26.3/106105
alexey-milovidov May 31, 2026
1e73462
Remove trailing whitespace in `InterpreterAlterQuery`
pamarcos Jun 1, 2026
d081cef
Remove Azure regression test inapplicable to 26.3
Algunenano Jun 1, 2026
13e4d0a
Merge pull request #106045 from ClickHouse/backport/26.3/104416
pamarcos Jun 1, 2026
06f6e8b
Merge pull request #106170 from ClickHouse/backport/26.3/106109
Algunenano Jun 2, 2026
5c68aea
Merge pull request #105965 from ClickHouse/backport/26.3/105584
Ergus Jun 2, 2026
f3d7988
Merge pull request #106061 from ClickHouse/backport/26.3/105894
alexey-milovidov Jun 3, 2026
7120a25
Merge pull request #106003 from ClickHouse/backport/26.3/101218
alexey-milovidov Jun 3, 2026
0fcaca4
Merge pull request #105969 from ClickHouse/backport/26.3/105535
alexey-milovidov Jun 3, 2026
9574206
Merge pull request #105802 from ClickHouse/backport/26.3/103268
alexey-milovidov Jun 3, 2026
b7c045c
Backport #105996 to 26.3: Fix possible OOM due to a too-large string …
robot-clickhouse Jun 4, 2026
371b7fa
Revert "Backport #105584 to 26.3: Honor cast_string_to_date_time_mode…
nickitat Jun 5, 2026
e08e228
Merge pull request #106613 from ClickHouse/revert-105965-backport/26.…
alexey-milovidov Jun 6, 2026
d2cb515
Merge branch '26.3' into backport/26.3/105996
nickitat Jun 6, 2026
ded624a
Merge pull request #103373 from ClickHouse/backport/26.3/101403
alexey-milovidov Jun 6, 2026
27ae4e9
Merge pull request #106498 from ClickHouse/backport/26.3/105996
alexey-milovidov Jun 6, 2026
4db3056
Rebase CICD on v26.3.13.31-lts
strtgbb Jun 11, 2026
79fb314
Merge branch 'stable-26.3' into rebase-cicd-v26.3.13.31-lts
strtgbb Jun 11, 2026
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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion ci/defs/job_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"./ci/jobs/scripts/docker_in_docker.sh",
],
),
run_in_docker=f"altinityinfra/integration-tests-runner+root+--memory={LIMITED_MEM}+--privileged+--dns-search='.'+--security-opt seccomp=unconfined+--cap-add=SYS_PTRACE+{docker_sock_mount}+--volume=clickhouse_integration_tests_volume:/var/lib/docker+--cgroupns=host+--env=CLICKHOUSE_TEST_STAT_URL=$CLICKHOUSE_TEST_STAT_URL+--env=CLICKHOUSE_TEST_STAT_LOGIN=$CLICKHOUSE_TEST_STAT_LOGIN+--env=CLICKHOUSE_TEST_STAT_PASSWORD=$CLICKHOUSE_TEST_STAT_PASSWORD",
run_in_docker=f"altinityinfra/integration-tests-runner+root+--memory={LIMITED_MEM}+--privileged+--dns-search='.'+--security-opt seccomp=unconfined+--cap-add=SYS_PTRACE+{docker_sock_mount}+--volume=clickhouse_integration_tests_volume:/var/lib/docker+--cgroupns=host+--ulimit nofile=262144:262144+--env=CLICKHOUSE_TEST_STAT_URL=$CLICKHOUSE_TEST_STAT_URL+--env=CLICKHOUSE_TEST_STAT_LOGIN=$CLICKHOUSE_TEST_STAT_LOGIN+--env=CLICKHOUSE_TEST_STAT_PASSWORD=$CLICKHOUSE_TEST_STAT_PASSWORD",
)


Expand Down
9 changes: 8 additions & 1 deletion ci/jobs/check_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from concurrent.futures import ProcessPoolExecutor
from pathlib import Path

from praktika.info import Info
from praktika.result import Result
from praktika.utils import Shell, Utils

Expand Down Expand Up @@ -573,7 +574,13 @@ def parse_args():
)
)
testname = "test_numbers_check"
if testpattern.lower() in testname.lower():
# Skip on release branches and backport PRs: backports cherry-pick a small
# subset of test files, which legitimately leaves large gaps in the numbering.
info = Info()
release_branch_re = re.compile(r"^\d{2}\.\d+$")
branch_to_check = (info.base_branch or info.git_branch or "").removeprefix("release/")
is_release_branch = bool(release_branch_re.match(branch_to_check))
if testpattern.lower() in testname.lower() and not is_release_branch:
results.append(
Result.from_commands_run(
name=testname,
Expand Down
10 changes: 5 additions & 5 deletions cmake/autogenerated_versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

# NOTE: VERSION_REVISION has nothing common with DBMS_TCP_PROTOCOL_VERSION,
# only DBMS_TCP_PROTOCOL_VERSION should be incremented on protocol changes.
SET(VERSION_REVISION 54517)
SET(VERSION_REVISION 54520)
SET(VERSION_MAJOR 26)
SET(VERSION_MINOR 3)
SET(VERSION_PATCH 10)
SET(VERSION_GITHASH 0d82c1998e3b4d54e110dd8a77a64d247c4bff4a)
SET(VERSION_DESCRIBE v26.3.10.10001.altinitytest)
SET(VERSION_STRING 26.3.10.10001.altinitytest)
SET(VERSION_PATCH 13)
SET(VERSION_GITHASH d23c7536b980c34b39c850b08ef23c509f06aaaa)
SET(VERSION_DESCRIBE v26.3.13.10001.altinitytest)
SET(VERSION_STRING 26.3.13.10001.altinitytest)
# end of autochange

SET(VERSION_TWEAK 20001)
Expand Down
2 changes: 1 addition & 1 deletion contrib/delta-kernel-rs
2 changes: 1 addition & 1 deletion contrib/mongo-c-driver
Submodule mongo-c-driver updated 292 files
12 changes: 6 additions & 6 deletions contrib/mongo-c-driver-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ if(NOT USE_MONGODB)
endif()

set(libbson_VERSION_MAJOR 2)
set(libbson_VERSION_MINOR 2)
set(libbson_VERSION_PATCH 2)
set(libbson_VERSION 2.2.2)
set(libbson_VERSION_MINOR 3)
set(libbson_VERSION_PATCH 0)
set(libbson_VERSION 2.3.0)
set(libmongoc_VERSION_MAJOR 2)
set(libmongoc_VERSION_MINOR 2)
set(libmongoc_VERSION_PATCH 2)
set(libmongoc_VERSION 2.2.2)
set(libmongoc_VERSION_MINOR 3)
set(libmongoc_VERSION_PATCH 0)
set(libmongoc_VERSION 2.3.0)

set(LIBBSON_SOURCES_ROOT "${ClickHouse_SOURCE_DIR}/contrib/mongo-c-driver/src")
set(LIBBSON_SOURCE_DIR "${LIBBSON_SOURCES_ROOT}/libbson/src")
Expand Down
2 changes: 1 addition & 1 deletion contrib/replxx
23 changes: 21 additions & 2 deletions docs/en/sql-reference/statements/system.md
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ SYSTEM STOP VIEWS

Enable periodic refreshing for the given view or all refreshable views. No immediate refresh is triggered.

If the view is in a Replicated or Shared database, `START VIEW` undoes the effect of `STOP VIEW`, and `START REPLICATED VIEW` undoes the effect of `STOP REPLICATED VIEW`.
If the view is in a Replicated or Shared database, `START VIEW` undoes the effect of `STOP VIEW`, and `START REPLICATED VIEW` undoes the effect of `STOP REPLICATED VIEW`. `START VIEW` also undoes the effect of `PAUSE VIEW`.

```sql
SYSTEM START VIEW [db.]name
Expand All @@ -733,7 +733,26 @@ SYSTEM START VIEW [db.]name
SYSTEM START VIEWS
```

### SYSTEM CANCEL VIEW {#cancel-view}
### SYSTEM PAUSE VIEW, PAUSE VIEWS {#pause-view-pause-views}

Disable periodic refreshing of the given view or all refreshable views.
Unlike `SYSTEM STOP VIEW`, `SYSTEM PAUSE VIEW` does not interrupt a refresh that is already in progress: the running refresh is allowed to finish, and only subsequent refreshes are prevented.

Undo with `SYSTEM START VIEW` or `SYSTEM START VIEWS`.

:::note
The paused state does not persist across server restarts. After a restart, views will resume their configured refresh schedules.
In Replicated or Shared databases, `SYSTEM PAUSE VIEW` only affects the current replica.
:::

```sql
SYSTEM PAUSE VIEW [db.]name
```
```sql
SYSTEM PAUSE VIEWS
```

### SYSTEM REFRESH VIEW {#refresh-view}

If there's a refresh in progress for the given view on the current replica, interrupt and cancel it. Otherwise do nothing.

Expand Down
2 changes: 1 addition & 1 deletion src/Access/Common/AccessType.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ enum class AccessType : uint8_t
M(SYSTEM_MOVES, "SYSTEM STOP MOVES, SYSTEM START MOVES, STOP MOVES, START MOVES", TABLE, SYSTEM) \
M(SYSTEM_PULLING_REPLICATION_LOG, "SYSTEM STOP PULLING REPLICATION LOG, SYSTEM START PULLING REPLICATION LOG", TABLE, SYSTEM) \
M(SYSTEM_CLEANUP, "SYSTEM STOP CLEANUP, SYSTEM START CLEANUP", TABLE, SYSTEM) \
M(SYSTEM_VIEWS, "SYSTEM REFRESH VIEW, SYSTEM START VIEWS, SYSTEM STOP VIEWS, SYSTEM START VIEW, SYSTEM STOP VIEW, SYSTEM CANCEL VIEW, REFRESH VIEW, START VIEWS, STOP VIEWS, START VIEW, STOP VIEW, CANCEL VIEW", VIEW, SYSTEM) \
M(SYSTEM_VIEWS, "SYSTEM REFRESH VIEW, SYSTEM START VIEWS, SYSTEM STOP VIEWS, SYSTEM START VIEW, SYSTEM STOP VIEW, SYSTEM PAUSE VIEWS, SYSTEM PAUSE VIEW, SYSTEM CANCEL VIEW, REFRESH VIEW, START VIEWS, STOP VIEWS, START VIEW, STOP VIEW, PAUSE VIEWS, PAUSE VIEW, CANCEL VIEW", VIEW, SYSTEM) \
M(SYSTEM_DISTRIBUTED_SENDS, "SYSTEM STOP DISTRIBUTED SENDS, SYSTEM START DISTRIBUTED SENDS, STOP DISTRIBUTED SENDS, START DISTRIBUTED SENDS", TABLE, SYSTEM_SENDS) \
M(SYSTEM_REPLICATED_SENDS, "SYSTEM STOP REPLICATED SENDS, SYSTEM START REPLICATED SENDS, STOP REPLICATED SENDS, START REPLICATED SENDS", TABLE, SYSTEM_SENDS) \
M(SYSTEM_SENDS, "SYSTEM STOP SENDS, SYSTEM START SENDS, STOP SENDS, START SENDS", GROUP, SYSTEM) \
Expand Down
4 changes: 2 additions & 2 deletions src/AggregateFunctions/AggregateFunctionSingleValueOrNull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ struct AggregateFunctionSingleValueOrNullData
{
ColumnNullable & col = typeid_cast<ColumnNullable &>(to);
col.getNullMapColumn().insertDefault();
data().insertResultInto(col.getNestedColumn(), result_type);
data().insertResultInto(col.getNestedColumn(), removeNullable(result_type));
}
}
};
Expand Down Expand Up @@ -169,7 +169,7 @@ class AggregateFunctionSingleValueOrNull final

void deserialize(AggregateDataPtr place, ReadBuffer & buf, std::optional<size_t> /* version */, Arena * arena) const override
{
data(place).read(buf, *serialization, result_type, arena);
data(place).read(buf, *serialization, value_type, arena);
}

bool allocatesMemoryInArena() const override { return singleValueTypeAllocatesMemoryInArena(value_type->getTypeId()); }
Expand Down
36 changes: 36 additions & 0 deletions src/AggregateFunctions/Combinators/AggregateFunctionOrFill.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,42 @@ class AggregateFunctionOrFill final : public IAggregateFunctionHelper<AggregateF
nested_function->insertResultInto(place, to, arena);
}
}
else if (nested_function->isState())
{
/// Mirror the flag-set branch for State-nested combinators: routing
/// flag-unset rows through `to.insertDefault()` would call
/// `ColumnAggregateFunction::ensureOwnership()` on the inner column and
/// reset its `src`, leaving subsequent flag-set rows pushing externally-
/// owned state pointers without `src` protection (double-destroy under
/// `MemorySanitizer`, issue #105462). The state at `place` is already
/// default-initialized by `create()` above, so it is safe to forward.
if constexpr (UseNull)
{
if (!result_is_nullable || inner_nullable)
{
if constexpr (merge)
nested_function->insertMergeResultInto(place, to, arena);
else
nested_function->insertResultInto(place, to, arena);
}
else
{
ColumnNullable & col = typeid_cast<ColumnNullable &>(to);
col.getNullMapColumn().getData().push_back(static_cast<UInt8>(1));
if constexpr (merge)
nested_function->insertMergeResultInto(place, col.getNestedColumn(), arena);
else
nested_function->insertResultInto(place, col.getNestedColumn(), arena);
}
}
else
{
if constexpr (merge)
nested_function->insertMergeResultInto(place, to, arena);
else
nested_function->insertResultInto(place, to, arena);
}
}
else
to.insertDefault();
}
Expand Down
4 changes: 4 additions & 0 deletions src/AggregateFunctions/UniquesHashSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <math.h>

#include <base/defines.h>
#include <base/types.h>

#include <IO/WriteBuffer.h>
Expand Down Expand Up @@ -465,6 +466,9 @@ class UniquesHashSet : private HashTableAllocatorWithStackMemory<(1ULL << UNIQUE
if (m_size > UNIQUES_HASH_MAX_SIZE)
throw Poco::Exception("Cannot write UniquesHashSet: too large size_degree.");

/// A null `buf` here would indicate upstream state corruption (e.g. a double-destroyed state).
chassert(buf);

DB::writeBinaryLittleEndian(skip_degree, wb);
DB::writeVarUInt(m_size, wb);

Expand Down
3 changes: 2 additions & 1 deletion src/Analyzer/FunctionNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ ASTPtr FunctionNode::toASTImpl(const ConvertToASTOptions & options) const
/// tuple, and adding a type may significantly increase query size.
/// It should be safe because set type for `column IN tuple` is deduced from `column` type.
if (isNameOfInFunction(function_name) && argument_nodes.size() > 1 && argument_nodes[1]->getNodeType() == QueryTreeNodeType::CONSTANT
&& !static_cast<const ConstantNode *>(argument_nodes[1].get())->hasSourceExpression())
&& !static_cast<const ConstantNode *>(argument_nodes[1].get())->hasSourceExpression()
&& !isArray(argument_nodes[1]->getResultType()))
{
auto expression_list_ast = make_intrusive<ASTExpressionList>();

Expand Down
Loading
Loading