gerashegalov opened a new pull request, #17199:
URL: https://github.com/apache/iceberg/pull/17199

   Follow-up to #16154.
   
   ### What changes were made in this PR?
   
   Backport the Spark 4.1 session-level split-size override to Spark 3.5 and 
Spark 4.0.
   
   This adds `spark.sql.iceberg.read.split-size` support in the older Spark 
shims by wiring the session configuration into 
`SparkReadConf.splitSizeOption()` and `SparkReadConf.splitSize()`.
   
   ### Why this shape?
   
   This follows the Spark backport pattern discussed in review: land and review 
the change first in the latest Spark version, then copy the reviewed 
implementation to older supported Spark versions in a follow-up PR. Recent 
examples include #16344 and #16245, which backported Spark changes to older 
shim versions in a single follow-up PR.
   
   ### How was this patch tested?
   
   - `git diff --check`
   - `./gradlew -DsparkVersions=3.5 -DscalaVersion=2.12 
:iceberg-spark:iceberg-spark-3.5_2.12:test --tests 
org.apache.iceberg.spark.TestSparkReadConf --tests 
org.apache.iceberg.spark.source.TestSparkScan`
   - `./gradlew -DsparkVersions=3.5 -DscalaVersion=2.13 
:iceberg-spark:iceberg-spark-3.5_2.13:test --tests 
org.apache.iceberg.spark.TestSparkReadConf --tests 
org.apache.iceberg.spark.source.TestSparkScan`
   - `./gradlew -DsparkVersions=4.0 -DscalaVersion=2.13 
:iceberg-spark:iceberg-spark-4.0_2.13:test --tests 
org.apache.iceberg.spark.TestSparkReadConf --tests 
org.apache.iceberg.spark.source.TestSparkScan`
   - `./gradlew -DsparkVersions=3.5 -DscalaVersion=2.12 
:iceberg-spark:iceberg-spark-3.5_2.12:spotlessCheck 
:iceberg-spark:iceberg-spark-3.5_2.12:checkstyleMain 
:iceberg-spark:iceberg-spark-3.5_2.12:checkstyleTest`
   - `./gradlew -DsparkVersions=4.0 -DscalaVersion=2.13 
:iceberg-spark:iceberg-spark-4.0_2.13:spotlessCheck 
:iceberg-spark:iceberg-spark-4.0_2.13:checkstyleMain 
:iceberg-spark:iceberg-spark-4.0_2.13:checkstyleTest`
   
   ---
   **AI Disclosure**
   - Model: GPT-5 / Codex
   - Platform/Tool: OpenAI Codex
   - Human Oversight: fully reviewed
   - Prompt Summary: Helped identify Spark backport precedent and implement the 
Spark 3.5/4.0 follow-up PR for the session-level split-size override.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to