Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
5fa021c
Backport #96479 to 26.1: Fix null pointer dereference in `DataTypeFun…
robot-clickhouse Feb 10, 2026
88345b3
Backport #96995 to 26.1: Fix missing move of query_metadata_cache in …
robot-clickhouse Feb 16, 2026
01fa753
Backport #97239 to 26.1: Fix exception when arrayJoin in WHERE is pus…
robot-clickhouse Feb 18, 2026
dd8b3a6
Backport #97336 to 26.1: Fix use-after-free in StorageKeeperMap backup
robot-clickhouse Feb 19, 2026
6e9bd59
Backport #97520 to 26.1: fix a possible use after free in StorageKafk…
robot-clickhouse Feb 22, 2026
4abf789
Backport #97826 to 26.1: Fix crash with mapContainsKey/mapContainsKey…
robot-clickhouse Feb 26, 2026
8597b3e
Backport #97546 to 26.1: Remove incorrect replaceRegexpOne to extract…
robot-clickhouse Feb 26, 2026
e0a7f62
Backport #98276 to 26.1: Fix off-by-one in ToDateMonotonicity boundar…
robot-clickhouse Mar 1, 2026
947ff2b
Backport #97682 to 26.1: Fix row policy bypass via `loop` table function
robot-clickhouse Mar 1, 2026
c9788df
Merge pull request #98386 from ClickHouse/backport/26.1/98276
clickhouse-gh[bot] Mar 1, 2026
50bd026
Update autogenerated version to 26.1.4.35 and contributors
robot-clickhouse Mar 1, 2026
a0675b2
Backport #97748 to 26.1: Fix `ActiveDataPartSet::hasPartitionId`
robot-clickhouse Mar 2, 2026
426d23c
Merge pull request #98567 from ClickHouse/backport/26.1/97748
clickhouse-gh[bot] Mar 3, 2026
6adf8ad
Backport #98306 to 26.1: Use `postgres` REL_18_3
robot-clickhouse Mar 3, 2026
4af93ff
Merge pull request #98594 from ClickHouse/backport/26.1/98306
clickhouse-gh[bot] Mar 3, 2026
2a35cac
Backport #98555 to 26.1: Fix usage of text index with other skip indexes
robot-clickhouse Mar 3, 2026
c1adaa1
Backport #95408 to 26.1: Fix reading subcolumns of ALIAS columns
robot-clickhouse Mar 3, 2026
3512928
Backport #98551 to 26.1: Fix column rollback in StorageBuffer::append…
robot-clickhouse Mar 3, 2026
5411600
Backport #98115 to 26.1: Enforce READ ON FILE checks for scalar file(…
robot-clickhouse Mar 3, 2026
b3e1ac8
Update 04010_text_index_incompelete_granules.sql
CurtizJ Mar 4, 2026
ec1b267
Merge pull request #98621 from ClickHouse/backport/26.1/98555
clickhouse-gh[bot] Mar 4, 2026
8648b6d
Merge pull request #98400 from ClickHouse/backport/26.1/97682
pufit Mar 4, 2026
3c9fdf6
Merge pull request #98657 from ClickHouse/backport/26.1/98115
evillique Mar 4, 2026
a391656
Backport #98304 to 26.1: Use `mongo-c-driver` 2.2.2
robot-clickhouse Mar 4, 2026
f5d7cbf
Merge pull request #98733 from ClickHouse/backport/26.1/98304
clickhouse-gh[bot] Mar 4, 2026
01de41f
Backport #98740 to 26.1: CI: skip all jobs for release PRs in filter_…
robot-clickhouse Mar 4, 2026
5c508b9
Merge pull request #98764 from ClickHouse/backport/26.1/98740
clickhouse-gh[bot] Mar 4, 2026
207c337
Backport #97502 to 26.1: Fix `sumCount` aggregate function not being …
robot-clickhouse Mar 5, 2026
8115781
Backport #98776 to 26.1: Fix detecting set skip index usefulness with…
robot-clickhouse Mar 5, 2026
24e6209
Merge pull request #98818 from ClickHouse/backport/26.1/97502
nihalzp Mar 5, 2026
84bbaba
Backport #98797 to 26.1: Fix `SYSTEM START REPLICATED VIEW` not wakin…
robot-clickhouse Mar 5, 2026
3b4b6d5
Merge pull request #98836 from ClickHouse/backport/26.1/98776
clickhouse-gh[bot] Mar 5, 2026
8b8772d
Merge pull request #98649 from ClickHouse/backport/26.1/98551
Avogar Mar 5, 2026
c1e3bb5
Merge pull request #98853 from ClickHouse/backport/26.1/98797
pamarcos Mar 5, 2026
48d74f9
Backport #98829 to 26.1: Fix adjusting RLIMIT_SIGPENDING (via pending…
robot-clickhouse Mar 5, 2026
b47aad2
Backport #97299 to 26.1: Add restart-only `allow_nullable_tuple_in_ex…
robot-clickhouse Mar 5, 2026
8a8d9fd
Merge pull request #98878 from ClickHouse/backport/26.1/98829
clickhouse-gh[bot] Mar 5, 2026
a2993b1
Merge pull request #98885 from ClickHouse/backport/26.1/97299
clickhouse-gh[bot] Mar 5, 2026
ad23ffc
Backport #98514 to 26.1: Fix unexpected result with read_in_order_use…
robot-clickhouse Mar 6, 2026
125ef87
Merge pull request #98634 from ClickHouse/backport/26.1/95408
Avogar Mar 6, 2026
63ecb87
Merge pull request #98928 from ClickHouse/backport/26.1/98514
clickhouse-gh[bot] Mar 6, 2026
64fb4d1
Backport #98482 to 26.1: Allow `CAST(... AS Nullable(T))` monotonicit…
robot-clickhouse Mar 9, 2026
c0995e3
Merge pull request #99050 from ClickHouse/backport/26.1/98482
clickhouse-gh[bot] Mar 9, 2026
37c830b
Backport #98755 to 26.1: Fix tuple subcolumn access by name for exter…
robot-clickhouse Mar 9, 2026
377eba5
Merge pull request #99092 from ClickHouse/backport/26.1/98755
clickhouse-gh[bot] Mar 9, 2026
4da2ce8
Backport #99107 to 26.1: Fix rebuild of text indexes on merges with TTL
robot-clickhouse Mar 10, 2026
e914a90
Backport #99084 to 26.1: Try not to re-caclculate indexes in requestR…
robot-clickhouse Mar 10, 2026
678cb7b
Backport #99112 to 26.1: Return unknown filter result on non-built Co…
robot-clickhouse Mar 10, 2026
78ba855
Merge pull request #99216 from ClickHouse/backport/26.1/99112
clickhouse-gh[bot] Mar 10, 2026
ba86a2d
Update 04033_text_index_empty_block_during_merge.sql
CurtizJ Mar 10, 2026
84f3972
Backport #99210 to 26.1: Do not check grants for every query tree nod…
robot-clickhouse Mar 11, 2026
cf77f18
Merge pull request #99149 from ClickHouse/backport/26.1/99107
CurtizJ Mar 11, 2026
3921264
Merge pull request #99187 from ClickHouse/backport/26.1/99084
vdimir Mar 11, 2026
ac5e337
Merge pull request #99253 from ClickHouse/backport/26.1/99210
clickhouse-gh[bot] Mar 11, 2026
51321de
Backport #99205 to 26.1: Fix max_execution_time not being applied for…
robot-clickhouse Mar 11, 2026
dd4c4b2
Backport #99086 to 26.1: Fix crash on memory limit happened while app…
robot-clickhouse Mar 11, 2026
67dcb3e
Merge pull request #99301 from ClickHouse/backport/26.1/99086
clickhouse-gh[bot] Mar 12, 2026
5596576
Merge pull request #99292 from ClickHouse/backport/26.1/99205
kssenii Mar 12, 2026
85bdb6e
Backport #98770 to 26.1: Fix reverseUTF8 exception on invalid UTF-8 i…
robot-clickhouse Mar 13, 2026
3cc0d1a
Backport #99081 to 26.1: Fix segfault in recursive CTE with `remote()…
robot-clickhouse Mar 13, 2026
387b1e7
Accept `COMMENT` before `AS SELECT` in view parser for forward compat…
alexey-milovidov Mar 16, 2026
9670959
Backport #98980 to 26.1: Fix query tree pass order for `GROUP BY` rew…
robot-clickhouse Mar 16, 2026
82a1a09
Backport #99505 to 26.1: Fix incorrect results for `hasAllTokens` wit…
robot-clickhouse Mar 17, 2026
f1f7010
Merge pull request #98035 from ClickHouse/backport/26.1/97546
alexey-milovidov Mar 17, 2026
9d0c8cf
Merge pull request #98023 from ClickHouse/backport/26.1/97826
alexey-milovidov Mar 17, 2026
e7f9a9e
Merge pull request #97613 from ClickHouse/backport/26.1/97520
alexey-milovidov Mar 17, 2026
ab0d854
Merge pull request #97369 from ClickHouse/backport/26.1/97336
alexey-milovidov Mar 17, 2026
505dfc0
Merge pull request #97253 from ClickHouse/backport/26.1/97239
alexey-milovidov Mar 17, 2026
d9dac7b
Merge pull request #97127 from ClickHouse/backport/26.1/96995
alexey-milovidov Mar 17, 2026
a087c74
Merge pull request #96521 from ClickHouse/backport/26.1/96479
alexey-milovidov Mar 17, 2026
9678a46
Merge pull request #99637 from ClickHouse/backport/26.1/98980
clickhouse-gh[bot] Mar 17, 2026
16cad10
Merge pull request #99418 from ClickHouse/backport/26.1/98770
alexey-milovidov Mar 17, 2026
2e6f576
Fix test reference: `formatQuery` on 26.1 escapes single quotes
alexey-milovidov Mar 17, 2026
f0d3232
Backport #99351 to 26.1: Fix CHECK TABLE with sparse serialization in…
robot-clickhouse Mar 17, 2026
56fd1dd
Update 04041_text_index_direct_read_or_multi_column.sql
CurtizJ Mar 17, 2026
ecf4cb1
Backport #99036 to 26.1: Fix server crash when dropping a patch part…
robot-clickhouse Mar 17, 2026
ee8cdc0
Backport #99232 to 26.1: Change default stderr_reaction to log_last f…
robot-clickhouse Mar 17, 2026
fd3ee33
Merge pull request #99691 from ClickHouse/backport/26.1/99505
clickhouse-gh[bot] Mar 17, 2026
ba303b4
Merge pull request #99783 from ClickHouse/backport/26.1/99232
clickhouse-gh[bot] Mar 17, 2026
83eb877
Merge pull request #99561 from ClickHouse/backport/26.1/97843
alexey-milovidov Mar 18, 2026
50b4db8
Merge branch '26.1' into backport/26.1/99036
alexey-milovidov Mar 18, 2026
11f8996
Merge branch '26.1' into backport/26.1/99351
alexey-milovidov Mar 18, 2026
bfb9574
Merge pull request #99771 from ClickHouse/backport/26.1/99036
clickhouse-gh[bot] Mar 18, 2026
247fdb1
Merge pull request #99732 from ClickHouse/backport/26.1/99351
Avogar Mar 18, 2026
dcbea01
Backport #99661 to 26.1: Fix reading of text index with lightweight d…
robot-clickhouse Mar 18, 2026
2ec812a
Merge pull request #99445 from ClickHouse/backport/26.1/99081
thevar1able Mar 18, 2026
d107285
Merge pull request #99905 from ClickHouse/backport/26.1/99661
clickhouse-gh[bot] Mar 18, 2026
e679eea
Backport #99678 to 26.1: Fix incorrect seek in AsynchronousReadBuffer…
robot-clickhouse Mar 18, 2026
0fde681
Backport #99587 to 26.1: Prune unused columns from ARRAY JOIN
robot-clickhouse Mar 18, 2026
71f5d33
Backport #99164 to 26.1: Fix LOGICAL_ERROR due to patch parts column …
robot-clickhouse Mar 18, 2026
3ec0c71
Merge pull request #99954 from ClickHouse/backport/26.1/99678
clickhouse-gh[bot] Mar 18, 2026
e566bf1
Fix missing backslash in `APPLY_FOR_FAILPOINTS` macro continuation
CurtizJ Mar 18, 2026
62380b5
Merge pull request #99967 from ClickHouse/backport/26.1/99587
clickhouse-gh[bot] Mar 19, 2026
1515650
Merge pull request #99991 from ClickHouse/backport/26.1/99164
CurtizJ Mar 19, 2026
3358526
Update autogenerated version to 26.1.5.41 and contributors
robot-clickhouse Mar 19, 2026
fa5f6a7
Backport #99392 to 26.1: Fix implicit index compatibility when upgrad…
robot-clickhouse Mar 19, 2026
9bdc1de
Backport #99976 to 26.1: Fix assertion failure in CRoaring on self-me…
robot-clickhouse Mar 19, 2026
3e30ea9
Fix backport build: adapt to 26.1 APIs
Algunenano Mar 19, 2026
c3aa0a9
Merge pull request #100097 from ClickHouse/backport/26.1/99976
clickhouse-gh[bot] Mar 19, 2026
078d564
Merge pull request #100073 from ClickHouse/backport/26.1/99392
clickhouse-gh[bot] Mar 19, 2026
608899a
merge 26.1.6
zvonand Mar 25, 2026
ee3d0bb
Merge branch 'antalya-26.1' into bump/antalya-26.1/26.1.6
zvonand Mar 26, 2026
940cd01
Merge branch 'antalya-26.1' into bump/antalya-26.1/26.1.6
zvonand Mar 26, 2026
f993e49
Merge branch 'antalya-26.1' into bump/antalya-26.1/26.1.6
CarlosFelipeOR Mar 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ allow_experimental_dynamic_type
allow_experimental_json_type
allow_experimental_vector_similarity_index
enable_vector_similarity_index
allow_nullable_tuple_in_extracted_subcolumns
allow_experimental_live_view
allow_special_serialization_kinds_in_output_formats
allow_not_comparable_types_in_comparison_functions
Expand Down
9 changes: 9 additions & 0 deletions ci/jobs/scripts/workflow_hooks/filter_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ def should_skip_job(job_name):
_info_cache = Info()
print(f"INFO: PR labels: {_info_cache.pr_labels}")

# There is no way to prevent GitHub Actions from running the PR workflow on
# release branches, so we skip all jobs here. The ReleaseCI workflow is used
# for testing on release branches instead.
if (
Labels.RELEASE in _info_cache.pr_labels
or Labels.RELEASE_LTS in _info_cache.pr_labels
):
return True, "Skipped for release PR"

changed_files = _info_cache.get_kv_data("changed_files")
if not changed_files:
print("WARNING: no changed files found for PR - do not filter jobs")
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 54509)
SET(VERSION_REVISION 54511)
SET(VERSION_MAJOR 26)
SET(VERSION_MINOR 1)
SET(VERSION_PATCH 4)
SET(VERSION_GITHASH 5549f2acae95c6d627654f50e212a85d059a55f9)
SET(VERSION_DESCRIBE v26.1.4.20001.altinityantalya)
SET(VERSION_STRING 26.1.4.20001.altinityantalya)
SET(VERSION_PATCH 6)
SET(VERSION_GITHASH d1072851f03c9dcae0bf59f48f5ec9b00405675d)
SET(VERSION_DESCRIBE v26.1.6.20001.altinityantalya)
SET(VERSION_STRING 26.1.6.20001.altinityantalya)
# end of autochange

SET(VERSION_TWEAK 20001)
Expand Down
2 changes: 1 addition & 1 deletion contrib/mongo-c-driver
Submodule mongo-c-driver updated 943 files
14 changes: 10 additions & 4 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 1)
set(libbson_VERSION_MINOR 2)
set(libbson_VERSION_PATCH 2)
set(libbson_VERSION 2.1.2)
set(libbson_VERSION 2.2.2)
set(libmongoc_VERSION_MAJOR 2)
set(libmongoc_VERSION_MINOR 1)
set(libmongoc_VERSION_MINOR 2)
set(libmongoc_VERSION_PATCH 2)
set(libmongoc_VERSION 2.1.2)
set(libmongoc_VERSION 2.2.2)

set(LIBBSON_SOURCES_ROOT "${ClickHouse_SOURCE_DIR}/contrib/mongo-c-driver/src")
set(LIBBSON_SOURCE_DIR "${LIBBSON_SOURCES_ROOT}/libbson/src")
Expand Down Expand Up @@ -136,6 +136,8 @@ set(UTF8PROC_SOURCE_DIR "${LIBBSON_SOURCES_ROOT}/utf8proc-2.8.0")
set(UTF8PROC_SOURCES "${UTF8PROC_SOURCE_DIR}/utf8proc.c")
set(UTHASH_SOURCE_DIR "${LIBBSON_SOURCES_ROOT}/uthash")

set(MONGOC_CXX_COMPILER_ID "${CMAKE_CXX_COMPILER_ID}")
set(MONGOC_CXX_COMPILER_VERSION "${CMAKE_CXX_COMPILER_VERSION}")
configure_file(
${LIBMONGOC_SOURCE_DIR}/mongoc/mongoc-config.h.in
${LIBMONGOC_BINARY_DIR}/mongoc/mongoc-config.h
Expand All @@ -144,6 +146,10 @@ configure_file(
${LIBMONGOC_SOURCE_DIR}/mongoc/mongoc-version.h.in
${LIBMONGOC_BINARY_DIR}/mongoc/mongoc-version.h
)
configure_file(
${LIBMONGOC_SOURCE_DIR}/mongoc/mongoc-config-private.h.in
${LIBMONGOC_BINARY_DIR}/mongoc/mongoc-config-private.h
)
add_library(_libmongoc ${LIBMONGOC_SOURCES} ${COMMON_SOURCES} ${UTF8PROC_SOURCES})
add_library(ch_contrib::libmongoc ALIAS _libmongoc)
target_include_directories(_libmongoc SYSTEM PUBLIC ${LIBMONGOC_SOURCE_DIR} ${LIBMONGOC_BINARY_DIR} ${LIBMONGOC_SOURCE_DIR}/mongoc ${LIBMONGOC_BINARY_DIR}/mongoc ${COMMON_SOURCE_DIR} ${UTF8PROC_SOURCE_DIR} ${UTHASH_SOURCE_DIR} )
Expand Down
15 changes: 15 additions & 0 deletions contrib/mongo-cxx-driver-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ include(GenerateExportHeader)

set(BSONCXX_SOURCES
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/private/itoa.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/private/version.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v1/config/config.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v1/config/export.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v1/config/version.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v1/detail/postlude.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v1/detail/prelude.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/array/element.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/array/value.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/array/view.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/builder/core.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/config/config.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/config/export.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/config/version.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/decimal128.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/document/element.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/document/value.cpp
Expand All @@ -31,6 +38,7 @@ set(BSONCXX_SOURCES
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/types/bson_value/value.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/types/bson_value/view.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/validate.cpp
${BSONCXX_SOURCES_DIR}/lib/bsoncxx/v_noabi/bsoncxx/vector.cpp
)

set(BSONCXX_POLY_USE_IMPLS ON)
Expand Down Expand Up @@ -95,6 +103,9 @@ set(MONGOCXX_SOURCES
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/private/conversions.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/private/mongoc.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/private/numeric_casting.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v1/config/config.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v1/config/export.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v1/config/version.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v1/detail/postlude.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v1/detail/prelude.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/bulk_write.cpp
Expand All @@ -103,6 +114,9 @@ set(MONGOCXX_SOURCES
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/client_encryption.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/client_session.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/collection.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/config/config.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/config/export.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/config/version.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/cursor.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/database.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/events/command_failed_event.cpp
Expand All @@ -119,6 +133,7 @@ set(MONGOCXX_SOURCES
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/events/topology_closed_event.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/events/topology_description.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/events/topology_opening_event.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/exception/authentication_exception.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/exception/bulk_write_exception.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/exception/error_code.cpp
${MONGOCXX_SOURCES_DIR}/lib/mongocxx/v_noabi/mongocxx/exception/exception.cpp
Expand Down
2 changes: 1 addition & 1 deletion contrib/postgres
Submodule postgres updated 444 files
12 changes: 6 additions & 6 deletions contrib/postgres-cmake/pg_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@
#define PACKAGE_NAME "PostgreSQL"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "PostgreSQL 18.0"
#define PACKAGE_STRING "PostgreSQL 18.3"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "postgresql"
Expand All @@ -602,7 +602,7 @@
#define PACKAGE_URL "https://www.postgresql.org/"

/* Define to the version of this package. */
#define PACKAGE_VERSION "18.0"
#define PACKAGE_VERSION "18.3"

/* Define to the name of a signed 128-bit integer type. */
#define PG_INT128_TYPE __int128
Expand All @@ -618,19 +618,19 @@
#define PG_MAJORVERSION_NUM 18

/* PostgreSQL minor version number */
#define PG_MINORVERSION_NUM 0
#define PG_MINORVERSION_NUM 3

/* Define to best printf format archetype, usually gnu_printf if available. */
#define PG_PRINTF_ATTRIBUTE gnu_printf

/* PostgreSQL version as a string */
#define PG_VERSION "18.0"
#define PG_VERSION "18.3"

/* PostgreSQL version as a number */
#define PG_VERSION_NUM 180000
#define PG_VERSION_NUM 180003

/* A string containing the version number, platform, and C compiler */
#define PG_VERSION_STR "PostgreSQL 18.0 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 15.2.1 20250813, 64-bit"
#define PG_VERSION_STR "PostgreSQL 18.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 15.2.1 20250813, 64-bit"

/* Define to 1 to allow profiling output to be saved separately for each
process. */
Expand Down
2 changes: 2 additions & 0 deletions docs/en/sql-reference/functions/udf.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ A function configuration contains the following settings:
| `execute_direct` | If `execute_direct` = `1`, then `command` will be searched inside user_scripts folder specified by [user_scripts_path](../../operations/server-configuration-parameters/settings.md#user_scripts_path). Additional script arguments can be specified using whitespace separator. Example: `script_name arg1 arg2`. If `execute_direct` = `0`, `command` is passed as argument for `bin/sh -c` | Optional | `1` |
| `lifetime` | The reload interval of a function in seconds. If it is set to `0` then the function is not reloaded | Optional | `0` |
| `deterministic` | If the function is deterministic (returns the same result for the same input) | Optional | `false` |
| `stderr_reaction` | How to handle the command's stderr output. Values: `none` (ignore), `log` (log all stderr immediately), `log_first` (log first 4 KiB after exit), `log_last` (log last 4 KiB after exit), `throw` (throw exception immediately on any stderr output). When using `log_first` or `log_last` with a non-zero exit code, the stderr content is included in the exception message | Optional | `log_last` |
| `check_exit_code` | If true, ClickHouse will check the exit code of the command. A non-zero exit code causes an exception | Optional | `true` |

The command must read arguments from `STDIN` and must output the result to `STDOUT`. The command must process arguments iteratively. That is after processing a chunk of arguments it must wait for the next chunk.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,19 @@ class BSINumericIndexedVector
*/
void pointwiseAddInplace(const BSINumericIndexedVector & rhs)
{
/// Self-addition requires a deep copy because the full adder logic below
/// performs in-place XOR on shared bitmaps (`sum->rb_xor(*addend)` where
/// `sum` and `addend` alias the same Roaring bitmap via `shallowCopyFrom`),
/// which triggers an assertion in CRoaring (`assert(x1 != x2)`) and would
/// produce incorrect results (A XOR A = 0) in release builds.
if (this == &rhs)
{
BSINumericIndexedVector copy;
copy.deepCopyFrom(rhs);
pointwiseAddInplace(copy);
return;
}

if (isEmpty())
{
deepCopyFrom(rhs);
Expand Down Expand Up @@ -539,6 +552,16 @@ class BSINumericIndexedVector
*/
void pointwiseSubtractInplace(const BSINumericIndexedVector & rhs)
{
/// Self-subtraction requires a deep copy for the same reason as
/// `pointwiseAddInplace`: in-place XOR on aliased bitmaps is undefined.
if (this == &rhs)
{
BSINumericIndexedVector copy;
copy.deepCopyFrom(rhs);
pointwiseSubtractInplace(copy);
return;
}

auto total_indexes = getAllIndex();
total_indexes->rb_or(*rhs.getAllIndex());

Expand Down
20 changes: 20 additions & 0 deletions src/AggregateFunctions/AggregateFunctionSumCount.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <AggregateFunctions/AggregateFunctionFactory.h>
#include <AggregateFunctions/Helpers.h>
#include <AggregateFunctions/FactoryHelpers.h>
#include <AggregateFunctions/Combinators/AggregateFunctionNull.h>
#include <DataTypes/DataTypeTuple.h>
#include <AggregateFunctions/AggregateFunctionAvg.h>

Expand Down Expand Up @@ -45,6 +46,25 @@ class AggregateFunctionSumCount final : public AggregateFunctionAvg<T>

String getName() const final { return "sumCount"; }

/// Keep the legacy nullable behavior/state layout for sumCount.
/// After `Nullable(Tuple)` was introduced, for Nullable arguments in the
/// generic Null-combinator path it started using `AggregateFunctionNullUnary<true, true>`
/// instead of `AggregateFunctionNullUnary<false, false>` for sumCount.
/// This adds a leading null-flag byte during serialization and expects that
/// byte during deserialization, which breaks compatibility with previously
/// serialized sumCount states.
/// So we force the legacy adapter for sumCount to preserve compatibility.
/// The extra null-flag is also redundant for sumCount: "has non-NULL rows"
/// can be inferred from `count` (`count > 0` means at least one row was seen).
AggregateFunctionPtr getOwnNullAdapter(
const AggregateFunctionPtr & nested_function,
const DataTypes & arguments,
const Array & params,
const AggregateFunctionProperties & /*properties*/) const final
{
return std::make_shared<AggregateFunctionNullUnary<false, false>>(nested_function, arguments, params);
}

#if USE_EMBEDDED_COMPILER

bool isCompilable() const override
Expand Down
2 changes: 1 addition & 1 deletion src/Analyzer/Passes/FunctionToSubcolumnsPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ std::tuple<FunctionNode *, ColumnNode *, TableNode *> getTypedNodesForOptimizati
return {};

auto * first_argument_column_node = function_arguments_nodes.front()->as<ColumnNode>();
if (!first_argument_column_node || first_argument_column_node->getColumnName() == "__grouping_set")
if (!first_argument_column_node || first_argument_column_node->getColumnName() == "__grouping_set" || first_argument_column_node->hasExpression())
return {};

auto column_source = first_argument_column_node->getColumnSource();
Expand Down
12 changes: 6 additions & 6 deletions src/Analyzer/Passes/InverseDictionaryLookupPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,6 @@ class InverseDictionaryLookupVisitor : public InDepthQueryTreeVisitorWithContext
if (getSettings()[Setting::rewrite_in_to_join])
return;

/// This rewrite turns `dictGet(...)` predicates into `IN (SELECT ... FROM dictionary(...))`.
/// The `dictionary()` table function requires `CREATE TEMPORARY TABLE`; if that grant is missing,
/// skip the optimization to avoid `ACCESS_DENIED`.
if (!getContext()->getAccess()->isGranted(AccessType::CREATE_TEMPORARY_TABLE))
return;

auto * node_function = node->as<FunctionNode>();

if (!node_function)
Expand Down Expand Up @@ -301,6 +295,12 @@ class InverseDictionaryLookupVisitor : public InDepthQueryTreeVisitorWithContext

void InverseDictionaryLookupPass::run(QueryTreeNodePtr & query_tree_node, ContextPtr context)
{
/// This rewrite turns `dictGet(...)` predicates into `IN (SELECT ... FROM dictionary(...))`.
/// The `dictionary()` table function requires `CREATE TEMPORARY TABLE`; if that grant is missing,
/// skip the optimization to avoid `ACCESS_DENIED`.
if (!context->getAccess()->isGranted(AccessType::CREATE_TEMPORARY_TABLE))
return;

InverseDictionaryLookupVisitor visitor(std::move(context));
visitor.visit(query_tree_node);
}
Expand Down
Loading
Loading