This is an automated email from the ASF dual-hosted git repository.
hello-stephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 6a4581276a8 [deps](paimon) Upgrade the Docker SQL fixture to Spark 4.1
and Paimon 2.1.1 (#70385)
6a4581276a8 is described below
commit 6a4581276a85103176f2d626e7edaa1cb1a90322
Author: Socrates <[email protected]>
AuthorDate: Thu Dec 3 21:06:08 2026 +0800
[deps](paimon) Upgrade the Docker SQL fixture to Spark 4.1 and Paimon 2.1.1
(#70385)
### Background
The Iceberg Docker stack runs a Spark SQL service for Iceberg and Paimon
and a separate Spark reference service for encrypted Iceberg metadata.
Regression suites use the SQL service to prepare test tables and read
back Doris writes.
### What problem does this PR solve?
Issue Number: None
Related PR: #70395 (closed manual branch-4.2 backport)
PR Type: Release/Dependency
Problem Summary:
External #16938 failed four Paimon write suites when the Spark 4.0
connector resolved `paimon_incremental_query` against Catalyst. Move the
Paimon fixture to Spark 4.1, with an Iceberg runtime that also preserves
the existing UNKNOWN, UUID and VARIANT use cases.
### Details
- **Versions:** Relative to master, the shared SQL fixture goes from
Spark 4.0.0 to 4.1.4, Paimon 1.4.2 to 2.1.1 and Iceberg 1.10.1 to
1.11.0. The independent encryption reference stays on Spark 4.0.0 and
Iceberg 1.12.0. PostgreSQL JDBC stays at 42.7.4. Pin the Spark SQL image
by digest and the seven Maven artifacts by SHA-256.
- **Upstream changes:** Spark 4.1 provides the five-argument
`DataSourceV2Relation.create` used by Paimon's table-valued functions.
Iceberg 1.11.0 publishes a Spark 4.1 runtime, retains the generic writer
API and supports shredded VARIANT writes. [Spark 4.1.4
release](https://spark.apache.org/releases/spark-release-4-1-4.html),
[Paimon
artifacts](https://paimon.apache.org/docs/2.1/project/download/),
[Iceberg 1.11.0
release](https://iceberg.apache.org/blog/apache-iceberg-1.11.0-release/).
- **Compatibility:** Prepare the dependencies through one
checksum-pinned cache using `MAVEN_REPOSITORY_URL`. Each Spark service
loads the Iceberg runtime and AWS bundle for its own version. The
encryption launcher passes its reference JARs to the Spark subprocess,
and the mixed VARIANT test explicitly writes its second file with
shredding disabled before restoring the write guard. Reuse the existing
`iceberg_data_spark40_paimon142.zip` through `s3BucketName` and
`s3Endpoint`. The storage layout and SQL initialization order stay the
same.
- **Rollback:** Revert the fixture configuration and recreate its
containers. The existing archive and versioned cache can coexist with
the previous fixture configuration.
### Testing
- Fedora x86-64 started the patched Spark, Iceberg REST, PostgreSQL,
MinIO and encryption reference services with isolated ports. The five
Iceberg suites that failed in [External
#20876](http://doris-ci.com/builds/agent-test/20876/index.html) passed:
`test_iceberg_encrypted_hms_metadata`, `test_iceberg_unknown_read`,
`test_iceberg_uuid_binary_compatibility`,
`test_iceberg_variant_defaults` and `test_iceberg_variant_read`.
- The encryption reference verified both historical snapshots over
Spark. A separate Spark SQL probe exercised schema-only VARIANT
evolution, and Parquet footers confirmed that the mixed writer inputs
produce one file with `typed_value` and one without it.
- All four Paimon write suites from [External
#16938](http://doris-ci.com/builds/agent-test/16938/index.html) passed
again through Spark Thrift. The regression runs used prebuilt Doris FE
and BE `b8c76b8aa335`.
- Earlier Fedora checks covered the configured archive, cold JAR
downloads, warm cache reuse and rejection of invalid hashes. The full
community External pipeline on the latest commit remains pending.
### Release note
None
### Check List (For Author)
- Behavior changed: No
- Does this need documentation: No. The fixture guide is updated.
- Pre-submission status: Partially verified: targeted Fedora regression
suites passed. Full community External CI remains pending.
### AI Disclosure
- Tool: OpenAI Codex (GPT-6)
- Generated: Fixture changes, validation and PR description.
- Human review: not stated
---
.../thirdparties/docker-compose/iceberg/README.md | 29 ++++++++-
.../encryption/IcebergEncryptionFixture.java | 10 ++--
.../docker-compose/iceberg/encryption/README.md | 2 +-
.../docker-compose/iceberg/encryption/start.sh | 12 ++--
.../docker-compose/iceberg/entrypoint.sh.tpl | 47 ++++++---------
.../docker-compose/iceberg/iceberg.yaml.tpl | 13 ++--
.../iceberg/{encryption => }/prepare-jars.sh | 31 +++++-----
.../docker-compose/iceberg/spark-defaults.conf | 1 +
docker/thirdparties/run-thirdparties-docker.sh | 69 ++++++++--------------
.../iceberg/test_iceberg_variant_read.groovy | 7 ++-
10 files changed, 113 insertions(+), 108 deletions(-)
diff --git a/docker/thirdparties/docker-compose/iceberg/README.md
b/docker/thirdparties/docker-compose/iceberg/README.md
index ab60fe4a704..3c40520edf0 100644
--- a/docker/thirdparties/docker-compose/iceberg/README.md
+++ b/docker/thirdparties/docker-compose/iceberg/README.md
@@ -24,6 +24,30 @@ tools:
save_docker.sh: save the current docker state
```
+## Spark SQL fixture
+
+The Spark SQL service uses Spark 4.1.4 (Scala 2.13), Paimon 2.1.1, and
+Iceberg 1.11.0. Use the Spark 4.1 connectors for both table formats. The
+Paimon 2.1.x Spark 4.0 bundle refers to a Spark 4.1 Catalyst method when
+resolving `paimon_incremental_query`, which fails on Spark 4.0.
+Iceberg 1.11.0 retains the generic writer API used by the UNKNOWN and UUID
+fixtures and supports reading newly added VARIANT columns before another write.
+
+The launcher prepares all JARs through `prepare-jars.sh`. It downloads from
+`MAVEN_REPOSITORY_URL` and verifies SHA-256 before writing to `cache/jars`.
+Spark SQL and the separate encryption fixture each load their matching Iceberg
+Spark runtime and AWS bundle from that cache. The REST catalog uses the cached
+PostgreSQL driver.
+
+The fixture data comes from the existing `iceberg_data_spark40_paimon142.zip`,
+using `s3BucketName` and `s3Endpoint` from `custom_settings.env`. The launcher
+extracts the archive on the first start and reuses the data across JAR
upgrades.
+
+The Paimon catalog explicitly enables path-style S3 access for the standalone
+MinIO service.
+
+The Fluss image and Hive compatibility fixtures retain their own Paimon
versions.
+
## Trino JDBC regressions
The Iceberg stack publishes Trino on `TRINO_JDBC_PORT` (8080 by default in
@@ -169,9 +193,8 @@ server-forced planning mode is covered separately by real
RESTCatalog unit tests
## Encrypted HMS metadata regression
The stack also starts a separate Hive metastore, disposable Moto KMS and
reference
-fixture for `test_iceberg_encrypted_hms_metadata`. The startup script downloads
-checksum-pinned Iceberg 1.12.0 reference jars into `encryption/jars`; it keeps
the
-existing Spark/REST data fixture on its current SDK.
+fixture for `test_iceberg_encrypted_hms_metadata`. The reference service and
its
+Spark subprocess load the checksum-pinned Iceberg 1.12.0 JARs from the shared
cache.
| Environment option | Default port | Regression option |
| --- | --- | --- |
diff --git
a/docker/thirdparties/docker-compose/iceberg/encryption/IcebergEncryptionFixture.java
b/docker/thirdparties/docker-compose/iceberg/encryption/IcebergEncryptionFixture.java
index 97aae7f886f..344932f74b3 100644
---
a/docker/thirdparties/docker-compose/iceberg/encryption/IcebergEncryptionFixture.java
+++
b/docker/thirdparties/docker-compose/iceberg/encryption/IcebergEncryptionFixture.java
@@ -96,6 +96,7 @@ public final class IcebergEncryptionFixture {
private final String kms;
private final String s3;
private final String keyId;
+ private final String sparkClasspath;
private final AtomicBoolean decryptDenied = new AtomicBoolean();
private final AtomicLong decryptRequests = new AtomicLong();
private final AtomicLong restNotModifiedResponses = new AtomicLong();
@@ -105,6 +106,7 @@ public final class IcebergEncryptionFixture {
hms = args[0];
kms = args[1];
s3 = args[2];
+ sparkClasspath = args[4];
Properties state = new Properties();
try (InputStream input = Files.newInputStream(Path.of(args[3]))) {
state.load(input);
@@ -114,8 +116,8 @@ public final class IcebergEncryptionFixture {
}
public static void main(String[] args) throws Exception {
- if (args.length != 4) {
- throw new IllegalArgumentException("Expected HMS URI, KMS
endpoint, S3 endpoint and test key state");
+ if (args.length != 5) {
+ throw new IllegalArgumentException("Expected HMS URI, KMS
endpoint, S3 endpoint, test key state and Spark classpath");
}
IcebergEncryptionFixture fixture = new IcebergEncryptionFixture(args);
HttpServer server = HttpServer.create(new InetSocketAddress(8181), 0);
@@ -631,10 +633,8 @@ public final class IcebergEncryptionFixture {
for (Snapshot snapshot : table.snapshots()) {
snapshots.add(snapshot.snapshotId());
}
- String classpath =
"/fixtures/jars/iceberg-spark-runtime-4.0_2.13-1.12.0.jar:"
- +
"/fixtures/jars/iceberg-aws-bundle-1.12.0.jar:/tmp/encryption-classes";
List<String> command = new
ArrayList<>(List.of("/opt/spark/bin/spark-sql", "--master", "local[2]",
- "--driver-class-path", classpath, "--conf",
"spark.executor.extraClassPath=" + classpath,
+ "--driver-class-path", sparkClasspath, "--conf",
"spark.executor.extraClassPath=" + sparkClasspath,
"--conf", "spark.ui.enabled=false", "--conf",
"spark.sql.shuffle.partitions=2",
"--conf",
"spark.sql.catalog.reference=org.apache.iceberg.spark.SparkCatalog",
"--conf", "spark.sql.catalog.reference.type=hive"));
diff --git a/docker/thirdparties/docker-compose/iceberg/encryption/README.md
b/docker/thirdparties/docker-compose/iceberg/encryption/README.md
index 1054aaa848f..859fcbe71e7 100644
--- a/docker/thirdparties/docker-compose/iceberg/encryption/README.md
+++ b/docker/thirdparties/docker-compose/iceberg/encryption/README.md
@@ -1,7 +1,7 @@
# Iceberg encryption reference fixtures
The isolated service uses Iceberg 1.12.0 and Parquet Java from the
checksum-pinned
-reference jars prepared by `prepare-jars.sh`. `start.sh` compiles the fixture
+reference jars prepared by the stack's `../prepare-jars.sh`. `start.sh`
compiles the fixture
classes into the container's temporary directory. Production Doris plugins do
not include these classes.
diff --git a/docker/thirdparties/docker-compose/iceberg/encryption/start.sh
b/docker/thirdparties/docker-compose/iceberg/encryption/start.sh
index 9aaff12770f..a50fb9a2767 100644
--- a/docker/thirdparties/docker-compose/iceberg/encryption/start.sh
+++ b/docker/thirdparties/docker-compose/iceberg/encryption/start.sh
@@ -18,9 +18,11 @@
set -euo pipefail
-classpath="/fixtures/jars/iceberg-spark-runtime-4.0_2.13-1.12.0.jar:/fixtures/jars/iceberg-aws-bundle-1.12.0.jar:/opt/spark/jars/*"
-mkdir -p /tmp/encryption-classes
-javac -cp "${classpath}" -d /tmp/encryption-classes
/fixtures/IcebergEncryptionFixture.java /fixtures/NativeDeleteFixture.java
/fixtures/IcebergV4Fixture.java
-exec java -XX:ActiveProcessorCount=4 -Xmx1g -cp
"/tmp/encryption-classes:${classpath}" \
+classes_dir="/tmp/encryption-classes"
+reference_jars="/opt/iceberg-jars/iceberg-spark-runtime-4.0_2.13-1.12.0.jar:/opt/iceberg-jars/iceberg-aws-bundle-1.12.0.jar"
+classpath="${reference_jars}:/opt/spark/jars/*"
+mkdir -p "${classes_dir}"
+javac -cp "${classpath}" -d "${classes_dir}"
/fixtures/IcebergEncryptionFixture.java /fixtures/NativeDeleteFixture.java
/fixtures/IcebergV4Fixture.java
+exec java -XX:ActiveProcessorCount=4 -Xmx1g -cp "${classes_dir}:${classpath}" \
IcebergEncryptionFixture thrift://encryption-hms:9083
http://encryption-kms:5000 \
- http://minio:9000 /state/kms.properties
+ http://minio:9000 /state/kms.properties "${classes_dir}:${reference_jars}"
diff --git a/docker/thirdparties/docker-compose/iceberg/entrypoint.sh.tpl
b/docker/thirdparties/docker-compose/iceberg/entrypoint.sh.tpl
index 6030809966f..92cbf3b48dd 100644
--- a/docker/thirdparties/docker-compose/iceberg/entrypoint.sh.tpl
+++ b/docker/thirdparties/docker-compose/iceberg/entrypoint.sh.tpl
@@ -41,43 +41,32 @@ done
start-master.sh -p 7077
-start-worker.sh spark://doris--spark-iceberg:7077
+start-worker.sh "spark://${SPARK_MASTER_HOST}:7077"
start-history-server.sh
-# The creation of a Spark SQL client is time-consuming,
-# and reopening a new client for each SQL file execution leads to significant
overhead.
-# To reduce the time spent on creating clients,
-# we group these files together and execute them using a single client.
-# This approach can reduce the time from 150s to 40s.
-
-START_TIME1=$(date +%s)
-find /mnt/scripts/create_preinstalled_scripts/iceberg -name '*.sql' | sort |
sed 's|^|source |' | sed 's|$|;|'> iceberg_total.sql
-spark-sql --master spark://doris--spark-iceberg:7077 --conf
spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions
-f iceberg_total.sql
-END_TIME1=$(date +%s)
-EXECUTION_TIME1=$((END_TIME1 - START_TIME1))
-echo "Script iceberg total: {} executed in $EXECUTION_TIME1 seconds"
-
-START_TIME2=$(date +%s)
-find /mnt/scripts/create_preinstalled_scripts/paimon -name '*.sql' | sort |
sed 's|^|source |' | sed 's|$|;|'> paimon_total.sql
-spark-sql --master spark://doris--spark-iceberg:7077 --conf
spark.sql.extensions=org.apache.paimon.spark.extensions.PaimonSparkSessionExtensions
-f paimon_total.sql
-END_TIME2=$(date +%s)
-EXECUTION_TIME2=$((END_TIME2 - START_TIME2))
-echo "Script paimon total: {} executed in $EXECUTION_TIME2 seconds"
-
-START_TIME3=$(date +%s)
-find /mnt/scripts/create_preinstalled_scripts/iceberg_load -name '*.sql' |
sort | sed 's|^|source |' | sed 's|$|;|'> iceberg_load_total.sql
-spark-sql --master spark://doris--spark-iceberg:7077 --conf
spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions
-f iceberg_load_total.sql
-END_TIME3=$(date +%s)
-EXECUTION_TIME3=$((END_TIME3 - START_TIME3))
-echo "Script iceberg load total: {} executed in $EXECUTION_TIME3 seconds"
+# Run a batch per dataset to share one Spark SQL client within the batch.
+load_fixture_sql() {
+ dataset="$1"
+ extension="$2"
+ start_time=$(date +%s)
+ find "/mnt/scripts/create_preinstalled_scripts/${dataset}" -name '*.sql' \
+ | sort | sed 's|^|source |; s|$|;|' > "${dataset}_total.sql"
+ spark-sql --master "spark://${SPARK_MASTER_HOST}:7077" \
+ --conf "spark.sql.extensions=${extension}" -f "${dataset}_total.sql"
+ echo "Loaded ${dataset} fixture SQL in $(( $(date +%s) - start_time ))
seconds"
+}
+
+load_fixture_sql iceberg
org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions
+load_fixture_sql paimon
org.apache.paimon.spark.extensions.PaimonSparkSessionExtensions
+load_fixture_sql iceberg_load
org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions
spark-sql \
- --master spark://doris--spark-iceberg:7077 \
+ --master "spark://${SPARK_MASTER_HOST}:7077" \
--conf
spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions
\
-e "CREATE DATABASE IF NOT EXISTS demo.default"
start-thriftserver.sh \
- --master spark://doris--spark-iceberg:7077 \
+ --master "spark://${SPARK_MASTER_HOST}:7077" \
--conf "spark.sql.extensions=${SPARK_THRIFT_EXTENSIONS}" \
--conf spark.dynamicAllocation.enabled=false \
--conf spark.cores.max=8 \
diff --git a/docker/thirdparties/docker-compose/iceberg/iceberg.yaml.tpl
b/docker/thirdparties/docker-compose/iceberg/iceberg.yaml.tpl
index 2ee5324291b..69fb4a1edae 100644
--- a/docker/thirdparties/docker-compose/iceberg/iceberg.yaml.tpl
+++ b/docker/thirdparties/docker-compose/iceberg/iceberg.yaml.tpl
@@ -20,7 +20,7 @@ version: "3"
services:
spark-iceberg:
- image: apache/spark:4.0.0
+ image:
apache/spark:4.1.4@sha256:847f91f8bb2f28d632064dfe632d423020f8fd60b27c7704c0e5bf5b0c6432c7
container_name: doris--spark-iceberg
hostname: doris--spark-iceberg
depends_on:
@@ -33,10 +33,10 @@ services:
- ./data:/mnt/data
- ./scripts:/mnt/scripts
- ./spark-defaults.conf:/opt/spark/conf/spark-defaults.conf
- -
./data/input/jars/iceberg-aws-bundle-1.10.1.jar:/opt/spark/jars/iceberg-aws-bundle-1.10.1.jar
- -
./data/input/jars/iceberg-spark-runtime-4.0_2.13-1.10.1.jar:/opt/spark/jars/iceberg-spark-runtime-4.0_2.13-1.10.1.jar
- -
./data/input/jars/paimon-s3-1.4.2.jar:/opt/spark/jars/paimon-s3-1.4.2.jar
- -
./data/input/jars/paimon-spark-4.0_2.13-1.4.2.jar:/opt/spark/jars/paimon-spark-4.0_2.13-1.4.2.jar
+ -
./cache/jars/iceberg-aws-bundle-1.11.0.jar:/opt/spark/jars/iceberg-aws-bundle-1.11.0.jar:ro
+ -
./cache/jars/iceberg-spark-runtime-4.1_2.13-1.11.0.jar:/opt/spark/jars/iceberg-spark-runtime-4.1_2.13-1.11.0.jar:ro
+ - ./cache/jars/paimon-s3-2.1.1.jar:/opt/spark/jars/paimon-s3-2.1.1.jar:ro
+ -
./cache/jars/paimon-spark-4.1_2.13-2.1.1.jar:/opt/spark/jars/paimon-spark-4.1_2.13-2.1.1.jar:ro
environment:
- AWS_ACCESS_KEY_ID=admin
- AWS_SECRET_ACCESS_KEY=password
@@ -77,7 +77,7 @@ services:
- ${REST_CATALOG_PORT}:8181
volumes:
- ./data:/mnt/data
- - ./data/input/jars/postgresql-42.7.4.jar:/opt/jdbc/postgresql.jar
+ - ./cache/jars/postgresql-42.7.4.jar:/opt/jdbc/postgresql.jar:ro
depends_on:
postgres:
condition: service_healthy
@@ -329,6 +329,7 @@ services:
condition: service_healthy
volumes:
- ./encryption:/fixtures:ro
+ - ./cache/jars:/opt/iceberg-jars:ro
- encryption-state:/state:ro
entrypoint: ["bash", "/fixtures/start.sh"]
ports:
diff --git
a/docker/thirdparties/docker-compose/iceberg/encryption/prepare-jars.sh
b/docker/thirdparties/docker-compose/iceberg/prepare-jars.sh
similarity index 52%
rename from
docker/thirdparties/docker-compose/iceberg/encryption/prepare-jars.sh
rename to docker/thirdparties/docker-compose/iceberg/prepare-jars.sh
index e1b17e7dadf..73d09b84656 100644
--- a/docker/thirdparties/docker-compose/iceberg/encryption/prepare-jars.sh
+++ b/docker/thirdparties/docker-compose/iceberg/prepare-jars.sh
@@ -19,8 +19,9 @@
set -euo pipefail
fixture_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-mkdir -p "${fixture_dir}/jars"
+cache_dir="${fixture_dir}/cache/jars"
repository="${MAVEN_REPOSITORY_URL:-https://repo.maven.apache.org/maven2}"
+mkdir -p "${cache_dir}"
sha256_file() {
if command -v sha256sum >/dev/null 2>&1; then
@@ -30,30 +31,30 @@ sha256_file() {
fi
}
-# These isolated reference jars must not replace the existing Spark fixture's
SDK.
-while read -r module expected_sha256; do
- filename="${module}-1.12.0.jar"
- destination="${fixture_dir}/jars/${filename}"
+# Use repository-relative coordinates so each version and checksum is listed
once.
+while read -r artifact expected_sha256; do
+ destination="${cache_dir}/${artifact##*/}"
if [[ -f "${destination}" ]] && [[ "$(sha256_file "${destination}")" ==
"${expected_sha256}" ]]; then
- # Spark needs other-user read access; readable shared caches may
belong to another user.
- if [[ -z "$(find -L "${destination}" -prune -perm -004 -print)" ]];
then
- chmod 0644 "${destination}"
- fi
continue
fi
+
temporary="$(mktemp "${destination}.tmp.XXXXXX")"
trap 'rm -f "${temporary}"' EXIT
- curl -fSL --retry 3 --connect-timeout 15 --max-time 300 \
- "${repository%/}/org/apache/iceberg/${module}/1.12.0/${filename}" -o
"${temporary}"
+ curl -fsSL --retry 3 --connect-timeout 15 --max-time 300 \
+ "${repository%/}/${artifact}" -o "${temporary}"
if [[ "$(sha256_file "${temporary}")" != "${expected_sha256}" ]]; then
- echo "Checksum mismatch for Iceberg encryption fixture ${filename}" >&2
+ echo "Checksum mismatch for Iceberg fixture ${artifact##*/}" >&2
exit 1
fi
- # Spark's non-root container user must read these host-created public jars.
chmod 0644 "${temporary}"
mv -f "${temporary}" "${destination}"
trap - EXIT
done <<'ARTIFACTS'
-iceberg-spark-runtime-4.0_2.13
3f50e93e8ed322ae0da0e380f1b6c27116404329c62e55f0586697b1b8378306
-iceberg-aws-bundle
dd7e49ffa4ac9b215bed846581991259e3aec9bb2fa08d6cec029c46cd66d957
+org/apache/iceberg/iceberg-aws-bundle/1.11.0/iceberg-aws-bundle-1.11.0.jar
38f01da7e96850cdd05e6616d758b77b43314b712a8808e3f9a824d56976162f
+org/apache/iceberg/iceberg-aws-bundle/1.12.0/iceberg-aws-bundle-1.12.0.jar
dd7e49ffa4ac9b215bed846581991259e3aec9bb2fa08d6cec029c46cd66d957
+org/apache/iceberg/iceberg-spark-runtime-4.0_2.13/1.12.0/iceberg-spark-runtime-4.0_2.13-1.12.0.jar
3f50e93e8ed322ae0da0e380f1b6c27116404329c62e55f0586697b1b8378306
+org/apache/iceberg/iceberg-spark-runtime-4.1_2.13/1.11.0/iceberg-spark-runtime-4.1_2.13-1.11.0.jar
d6ea6c5d099288daeb7d5a92061bd3d7d8f296492632b42378e5f2f0e3066242
+org/apache/paimon/paimon-s3/2.1.1/paimon-s3-2.1.1.jar
b600c0d36995b08b0beb6eaea0c82679bfb29f2955f976d67b45c5bffc75f124
+org/apache/paimon/paimon-spark-4.1_2.13/2.1.1/paimon-spark-4.1_2.13-2.1.1.jar
fff632bdc8d825473d375609543a52fa45c848cf2761927c9e6acb1dbd969c2a
+org/postgresql/postgresql/42.7.4/postgresql-42.7.4.jar
188976721ead8e8627eb6d8389d500dccc0c9bebd885268a3047180274a6031e
ARTIFACTS
diff --git a/docker/thirdparties/docker-compose/iceberg/spark-defaults.conf
b/docker/thirdparties/docker-compose/iceberg/spark-defaults.conf
index f05bf40726f..f6c30ef3bc2 100644
--- a/docker/thirdparties/docker-compose/iceberg/spark-defaults.conf
+++ b/docker/thirdparties/docker-compose/iceberg/spark-defaults.conf
@@ -44,3 +44,4 @@ spark.sql.catalog.paimon.s3.endpoint
http://minio:9000
spark.sql.catalog.paimon.s3.access-key admin
spark.sql.catalog.paimon.s3.secret-key password
spark.sql.catalog.paimon.s3.region us-east-1
+spark.sql.catalog.paimon.s3.path.style.access true
diff --git a/docker/thirdparties/run-thirdparties-docker.sh
b/docker/thirdparties/run-thirdparties-docker.sh
index 8de75123662..8d5a2e94912 100755
--- a/docker/thirdparties/run-thirdparties-docker.sh
+++ b/docker/thirdparties/run-thirdparties-docker.sh
@@ -1454,54 +1454,37 @@ start_hive_stack() {
}
start_iceberg() {
- # iceberg
- ICEBERG_DIR=${ROOT}/docker-compose/iceberg
+ local iceberg_dir="${ROOT}/docker-compose/iceberg"
+ local compose_file="${iceberg_dir}/iceberg.yaml"
+ local env_file="${iceberg_dir}/iceberg.env"
+
if [[ "${HOST_OS}" == "Darwin" ]]; then
export ICEBERG_POSTGRES_IMAGE="${ICEBERG_POSTGRES_IMAGE:-postgres:14}"
fi
- render_uid_template "${ROOT}/docker-compose/iceberg/iceberg.yaml.tpl"
"${ROOT}/docker-compose/iceberg/iceberg.yaml"
- render_uid_template "${ROOT}/docker-compose/iceberg/entrypoint.sh.tpl"
"${ROOT}/docker-compose/iceberg/entrypoint.sh"
- cp "${ROOT}/docker-compose/iceberg/entrypoint.sh"
"${ROOT}/docker-compose/iceberg/scripts/entrypoint.sh"
- register_stack_metadata "iceberg"
"${ROOT}/docker-compose/iceberg/iceberg.yaml"
"${ROOT}/docker-compose/iceberg/iceberg.env"
- compose_down_stack "${ROOT}/docker-compose/iceberg/iceberg.yaml"
"${ROOT}/docker-compose/iceberg/iceberg.env" --remove-orphans
- if [[ "${STOP}" -ne 1 ]]; then
- # data/ is extracted from the fixture archive once and then reused. A
data/ from an older archive lacks
- # jars that iceberg.yaml now mounts, and Compose would create empty
directories in their place, so
- # start over from the current archive.
- if [[ -d "${ICEBERG_DIR}/data" ]]; then
- local jar
- for jar in $(grep -o '\./data/input/jars/[^:]*\.jar'
"${ICEBERG_DIR}/iceberg.yaml"); do
- if [[ ! -f "${ICEBERG_DIR}/${jar#./}" ]]; then
- echo "${ICEBERG_DIR}/${jar#./} is missing,
${ICEBERG_DIR}/data is from an older archive"
- reset_data_dirs "${ICEBERG_DIR:?}/data"
- rmdir "${ICEBERG_DIR}/data"
- break
- fi
- done
- fi
- if [[ ! -d "${ICEBERG_DIR}/data" ]]; then
- echo "${ICEBERG_DIR}/data does not exist"
- (
- cd "${ICEBERG_DIR}" || exit 1
- rm -f iceberg_data*.zip
- if [[ "${HOST_OS}" == "Darwin" ]]; then
- curl -fL -o iceberg_data_spark40_paimon142.zip \
-
"https://${s3BucketName}.${s3Endpoint}/regression/datalake/pipeline_data/iceberg_data_spark40_paimon142.zip"
- else
- wget -P "${ROOT}/docker-compose/iceberg" \
-
"https://${s3BucketName}.${s3Endpoint}/regression/datalake/pipeline_data/iceberg_data_spark40_paimon142.zip"
- fi
- unzip iceberg_data_spark40_paimon142.zip
- mv iceberg_data data
- rm -rf iceberg_data_spark40_paimon142.zip
- )
- else
- echo "${ICEBERG_DIR}/data exist, continue !"
- fi
+ render_uid_template "${compose_file}.tpl" "${compose_file}"
+ render_uid_template "${iceberg_dir}/entrypoint.sh.tpl"
"${iceberg_dir}/scripts/entrypoint.sh"
+ register_stack_metadata "iceberg" "${compose_file}" "${env_file}"
+
+ if [[ "${STOP}" -eq 1 ]]; then
+ compose_down_stack "${compose_file}" "${env_file}" --remove-orphans
+ return
+ fi
- bash "${ICEBERG_DIR}/encryption/prepare-jars.sh"
- compose_up_stack "${ROOT}/docker-compose/iceberg/iceberg.yaml"
"${ROOT}/docker-compose/iceberg/iceberg.env" -d --wait
+ if [[ ! -d "${iceberg_dir}/data" ]]; then
+ (
+ archive_dir="$(mktemp -d "${iceberg_dir}/.fixture.XXXXXX")"
+ trap 'rm -rf "${archive_dir}"' EXIT
+ curl -fsSL --retry 3 --connect-timeout 15 --max-time 300 \
+
"https://${s3BucketName}.${s3Endpoint}/regression/datalake/pipeline_data/iceberg_data_spark40_paimon142.zip"
\
+ -o "${archive_dir}/fixture.zip"
+ unzip -q "${archive_dir}/fixture.zip" -d "${archive_dir}"
+ mv "${archive_dir}/iceberg_data" "${iceberg_dir}/data"
+ )
fi
+
+ bash "${iceberg_dir}/prepare-jars.sh"
+ compose_down_stack "${compose_file}" "${env_file}" --remove-orphans
+ compose_up_stack "${compose_file}" "${env_file}" -d --wait
}
start_hudi() {
diff --git
a/regression-test/suites/external_table_p0/iceberg/test_iceberg_variant_read.groovy
b/regression-test/suites/external_table_p0/iceberg/test_iceberg_variant_read.groovy
index f91336d0ddf..7ac6bbc7d4d 100644
---
a/regression-test/suites/external_table_p0/iceberg/test_iceberg_variant_read.groovy
+++
b/regression-test/suites/external_table_p0/iceberg/test_iceberg_variant_read.groovy
@@ -477,13 +477,18 @@ public class AppendVariantEqualityDelete {
's3a://warehouse/wh/${dbName}/variant_page_pruning/metadata/${shreddedMetadataName}')
"""
String shreddedOnlySnapshot = latestSnapshotId("variant_page_pruning")
+ // Disable shredding for the append so the scan covers both physical
layouts.
spark_iceberg_multi """
ALTER TABLE demo.${dbName}.variant_page_pruning SET TBLPROPERTIES (
'read.parquet.vectorization.enabled'='false',
- 'write.delete.mode'='merge-on-read'
+ 'write.delete.mode'='merge-on-read',
+ 'write.parquet.shred-variants'='false'
);
INSERT INTO demo.${dbName}.variant_page_pruning VALUES
(5000, parse_json('{"n":5000,"padding":"mixed-unshredded"}'));
+ ALTER TABLE demo.${dbName}.variant_page_pruning SET TBLPROPERTIES (
+ 'write.parquet.shred-variants'='true'
+ );
"""
String mixedBeforeDeleteSnapshot = latestSnapshotId("variant_page_pruning")
// One deletion vector targets the shredded fixture and another targets
the appended
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]