Skip to content

Commit f728183

Browse files
committed
Merge remote-tracking branch 'origin/master' into simplify_lwd_projection_drop_logic
2 parents 49d8718 + 661ea2a commit f728183

File tree

266 files changed

+5419
-3314
lines changed

Some content is hidden

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

266 files changed

+5419
-3314
lines changed

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,6 @@ option(OMIT_HEAVY_DEBUG_SYMBOLS
204204
${OMIT_HEAVY_DEBUG_SYMBOLS_DEFAULT})
205205

206206
option(BUILD_STANDALONE_KEEPER "Build keeper as small standalone binary" OFF)
207-
if (NOT BUILD_STANDALONE_KEEPER)
208-
option(CREATE_KEEPER_SYMLINK "Create symlink for clickhouse-keeper to main server binary" ON)
209-
else ()
210-
option(CREATE_KEEPER_SYMLINK "Create symlink for clickhouse-keeper to main server binary" OFF)
211-
endif ()
212207

213208
# Create BuildID when using lld. For other linkers it is created by default.
214209
# (NOTE: LINKER_NAME can be either path or name, and in different variants)

ci/jobs/scripts/functional_tests/setup_ch_cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ else
110110
fi
111111
clickhouse-client --query "CREATE TABLE test.hits_s3 (WatchID UInt64, JavaEnable UInt8, Title String, GoodEvent Int16, EventTime DateTime, EventDate Date, CounterID UInt32, ClientIP UInt32, ClientIP6 FixedString(16), RegionID UInt32, UserID UInt64, CounterClass Int8, OS UInt8, UserAgent UInt8, URL String, Referer String, URLDomain String, RefererDomain String, Refresh UInt8, IsRobot UInt8, RefererCategories Array(UInt16), URLCategories Array(UInt16), URLRegions Array(UInt32), RefererRegions Array(UInt32), ResolutionWidth UInt16, ResolutionHeight UInt16, ResolutionDepth UInt8, FlashMajor UInt8, FlashMinor UInt8, FlashMinor2 String, NetMajor UInt8, NetMinor UInt8, UserAgentMajor UInt16, UserAgentMinor FixedString(2), CookieEnable UInt8, JavascriptEnable UInt8, IsMobile UInt8, MobilePhone UInt8, MobilePhoneModel String, Params String, IPNetworkID UInt32, TraficSourceID Int8, SearchEngineID UInt16, SearchPhrase String, AdvEngineID UInt8, IsArtifical UInt8, WindowClientWidth UInt16, WindowClientHeight UInt16, ClientTimeZone Int16, ClientEventTime DateTime, SilverlightVersion1 UInt8, SilverlightVersion2 UInt8, SilverlightVersion3 UInt32, SilverlightVersion4 UInt16, PageCharset String, CodeVersion UInt32, IsLink UInt8, IsDownload UInt8, IsNotBounce UInt8, FUniqID UInt64, HID UInt32, IsOldCounter UInt8, IsEvent UInt8, IsParameter UInt8, DontCountHits UInt8, WithHash UInt8, HitColor FixedString(1), UTCEventTime DateTime, Age UInt8, Sex UInt8, Income UInt8, Interests UInt16, Robotness UInt8, GeneralInterests Array(UInt16), RemoteIP UInt32, RemoteIP6 FixedString(16), WindowName Int32, OpenerName Int32, HistoryLength Int16, BrowserLanguage FixedString(2), BrowserCountry FixedString(2), SocialNetwork String, SocialAction String, HTTPError UInt16, SendTiming Int32, DNSTiming Int32, ConnectTiming Int32, ResponseStartTiming Int32, ResponseEndTiming Int32, FetchTiming Int32, RedirectTiming Int32, DOMInteractiveTiming Int32, DOMContentLoadedTiming Int32, DOMCompleteTiming Int32, LoadEventStartTiming Int32, LoadEventEndTiming Int32, NSToDOMContentLoadedTiming Int32, FirstPaintTiming Int32, RedirectCount Int8, SocialSourceNetworkID UInt8, SocialSourcePage String, ParamPrice Int64, ParamOrderID String, ParamCurrency FixedString(3), ParamCurrencyID UInt16, GoalsReached Array(UInt32), OpenstatServiceName String, OpenstatCampaignID String, OpenstatAdID String, OpenstatSourceID String, UTMSource String, UTMMedium String, UTMCampaign String, UTMContent String, UTMTerm String, FromTag String, HasGCLID UInt8, RefererHash UInt64, URLHash UInt64, CLID UInt32, YCLID UInt64, ShareService String, ShareURL String, ShareTitle String, ParsedParams Nested(Key1 String, Key2 String, Key3 String, Key4 String, Key5 String, ValueDouble Float64), IslandID FixedString(16), RequestNum UInt32, RequestTry UInt8) ENGINE = MergeTree() PARTITION BY toYYYYMM(EventDate) ORDER BY (CounterID, EventDate, intHash32(UserID)) SAMPLE BY intHash32(UserID) SETTINGS index_granularity = 8192, storage_policy='s3_cache'"
112112
# AWS S3 is very inefficient, so increase memory even further:
113-
clickhouse-client --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits_s3 SELECT * FROM test.hits SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16"
113+
clickhouse-client --max_execution_time 600 --max_memory_usage 30G --max_memory_usage_for_user 30G --query "INSERT INTO test.hits_s3 SELECT * FROM test.hits SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16"
114114
fi
115115

116116
clickhouse-client --query "SHOW TABLES FROM test"

cmake/darwin/default_libs.cmake

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,18 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15)
1515
set(THREADS_PREFER_PTHREAD_FLAG ON)
1616
find_package(Threads REQUIRED)
1717

18+
if(NOT CMAKE_CROSSCOMPILING)
19+
execute_process(
20+
COMMAND xcrun --sdk macosx --show-sdk-version
21+
OUTPUT_VARIABLE OS_DARWIN_SDK_VERSION
22+
OUTPUT_STRIP_TRAILING_WHITESPACE
23+
)
24+
if(${OS_DARWIN_SDK_VERSION} MATCHES "^[0-9]+\\.[0-9]+")
25+
message(STATUS "Detected OSX SDK Version: ${OS_DARWIN_SDK_VERSION}")
26+
else ()
27+
message(WARNING "Unexpected OSX SDK Version: ${OS_DARWIN_SDK_VERSION}")
28+
endif()
29+
endif()
30+
1831
include (cmake/unwind.cmake)
19-
include (cmake/cxx.cmake)
32+
include (cmake/cxx.cmake)

contrib/postgres-cmake/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ if (OS_DARWIN OR OS_FREEBSD OR USE_MUSL)
7979
target_compile_definitions(_libpq PRIVATE -DSTRERROR_R_INT=1)
8080
endif()
8181

82+
# Mac 15.4 / Xcode 16.3 started defining srtchrnul
83+
# Could be cleaned up if properly resolved in upstream
84+
# https://www.postgresql.org/message-id/flat/385134.1743523038%40sss.pgh.pa.us
85+
if (OS_DARWIN AND OS_DARWIN_SDK_VERSION AND OS_DARWIN_SDK_VERSION VERSION_GREATER_EQUAL 15.4)
86+
target_compile_definitions(_libpq PRIVATE -DHAVE_STRCHRNUL)
87+
endif()
88+
8289
target_link_libraries (_libpq PRIVATE OpenSSL::SSL)
8390

8491
add_library(ch_contrib::libpq ALIAS _libpq)

docker/test/integration/runner/Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,17 @@ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
6363
COPY requirements.txt /
6464
RUN python3 -m pip install --no-cache-dir -r requirements.txt
6565

66-
# Hudi supports only spark 3.3.*, not 3.4
67-
RUN curl -fsSL -O https://archive.apache.org/dist/spark/spark-3.3.2/spark-3.3.2-bin-hadoop3.tgz \
68-
&& tar xzvf spark-3.3.2-bin-hadoop3.tgz -C / \
69-
&& rm spark-3.3.2-bin-hadoop3.tgz
66+
RUN curl -fsSL -O https://archive.apache.org/dist/spark/spark-3.5.5/spark-3.5.5-bin-hadoop3.tgz \
67+
&& tar xzvf spark-3.5.5-bin-hadoop3.tgz -C / \
68+
&& rm spark-3.5.5-bin-hadoop3.tgz
7069

7170
# download spark and packages
7271
# if you change packages, don't forget to update them in tests/integration/helpers/cluster.py
73-
RUN packages="org.apache.hudi:hudi-spark3.3-bundle_2.12:0.13.0,\
74-
io.delta:delta-core_2.12:2.3.0,\
75-
org.apache.iceberg:iceberg-spark-runtime-3.3_2.12:1.1.0" \
76-
&& /spark-3.3.2-bin-hadoop3/bin/spark-shell --packages "$packages" > /dev/null \
77-
&& find /root/.ivy2/ -name '*.jar' -exec ln -sf {} /spark-3.3.2-bin-hadoop3/jars/ \;
72+
RUN packages="io.delta:delta-spark_2.12:3.1.0,\
73+
org.apache.hudi:hudi-spark3.5-bundle_2.12:1.0.1,\
74+
org.apache.iceberg:iceberg-spark-runtime-3.5_2.12:1.4.3" \
75+
&& /spark-3.5.5-bin-hadoop3/bin/spark-shell --packages "$packages" > /dev/null \
76+
&& find /root/.ivy2/ -name '*.jar' -exec ln -sf {} /spark-3.5.5-bin-hadoop3/jars/ \;
7877

7978
RUN set -x \
8079
&& addgroup --system dockremap \

docker/test/integration/runner/dockerd-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ set -e
5454

5555
java_path="$(update-alternatives --config java | sed -n 's/.*(providing \/usr\/bin\/java): //p')"
5656
export JAVA_PATH=$java_path
57-
export SPARK_HOME="/spark-3.3.2-bin-hadoop3"
57+
export SPARK_HOME="/spark-3.5.5-bin-hadoop3"
5858
export PATH=$SPARK_HOME/bin:$PATH
5959
export JAVA_TOOL_OPTIONS="-Djdk.attach.allowAttachSelf=true"
6060

docker/test/integration/runner/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ cramjam==2.9.1
2828
cryptography==42.0.0
2929
datacompy==0.7.3
3030
decorator==5.1.1
31-
delta-spark==2.3.0
32-
deltalake==0.16.0
31+
delta-spark==3.3.0
32+
deltalake==0.25.5
3333
dict2xml==1.7.4
3434
dicttoxml==1.7.16
3535
docker==6.1.3
@@ -68,7 +68,7 @@ protobuf==4.25.2
6868
psycopg-binary==3.2.4
6969
psycopg2-binary==2.9.6
7070
psycopg==3.2.4
71-
py4j==0.10.9.5
71+
py4j==0.10.9.7
7272
pyarrow-hotfix==0.6
7373
pyarrow==17.0.0
7474
pycparser==2.22
@@ -79,7 +79,7 @@ pyiceberg==0.8.1
7979
pyiceberg[glue]==0.8.1
8080
pymongo==3.11.0
8181
pyparsing==3.1.0
82-
pyspark==3.3.2
82+
pyspark==3.5.5
8383
pyspnego==0.10.2
8484
pytest-order==1.0.0
8585
pytest-random-order==1.1.1

docs/en/operations/settings/merge-tree-settings.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ title: 'MergeTree tables settings'
66

77
import ExperimentalBadge from '@theme/badges/ExperimentalBadge';
88
import BetaBadge from '@theme/badges/BetaBadge';
9+
import SettingsInfoBlock from '@theme/SettingsInfoBlock/SettingsInfoBlock';
10+
import VersionHistory from '@theme/VersionHistory/VersionHistory';
911

1012
System table `system.merge_tree_settings` shows the globally set MergeTree settings.
1113

docs/en/sql-reference/data-types/date.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: 'Documentation for the Date data type in ClickHouse'
33
sidebar_label: 'Date'
4-
sidebar_position: 34
4+
sidebar_position: 12
55
slug: /sql-reference/data-types/date
66
title: 'Date'
77
---

docs/en/sql-reference/data-types/date32.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ SELECT * FROM dt32;
3838
┌──timestamp─┬─event_id─┐
3939
│ 2100-01-01 │ 1 │
4040
│ 2100-01-01 │ 2 │
41+
│ 2100-01-01 │ 3 │
4142
└────────────┴──────────┘
4243
```
4344

0 commit comments

Comments
 (0)