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

   ## Intent
   
   Address the minor point in 
https://github.com/apache/iceberg/pull/17562#issuecomment-7120036716 with a 
small Spark 4.2 parity change.
   
   Reviewer gerashegalov wrote: "Minor: #18726 also added scanDuration to 
MergingSortedRowDataReader, but 4.2 (and 4.0 after #18775) doesn't have that. 
Nothing calls that reader yet, so a small 4.2 parity change would be enough."
   
   Context: #17562 added the per-task `scanDuration` read metric 
(`TaskScanDuration`) to Spark 4.1. #18726 (commit d414bdc12, "Spark 4.1: Keep 
read metrics from earlier readers in the same task") then also reported 
scanDuration from `MergingSortedRowDataReader` in 4.1. Spark 4.2 got 
scanDuration from #18751 but its `MergingSortedRowDataReader` does not report 
it.
   
   ## What Changed
   - Spark 4.2 `MergingSortedRowDataReader.currentMetricsValues()` now reports 
`TaskScanDuration`, summed across its file readers. This matches the Spark 4.1 
behavior added in #18726.
   - `TestMergingSortedRowDataReader` now also asserts that the reported scan 
duration metric is positive.
   
   ## Risk Assessment
   
   ✅ Low: This is a small parity change that copies the 4.1 scanDuration 
summation from d414bdc12 into the 4.2 MergingSortedRowDataReader. It uses the 
existing BaseReader.scanDurationNanos(), SparkScan already declares 
ScanDuration, and no caller uses this reader yet.
   
   ## Testing
   
   Nothing in Spark 4.2 calls `MergingSortedRowDataReader` yet, so the most 
direct way to drive it is the reader's own test: it builds a real table with 3 
data files and a delete file, reads them through the reader, and checks the 
metrics. With the change, all 34 tests in `TestMergingSortedRowDataReader` pass 
and the scanDuration metric is positive. With the old reader source, the same 
test fails because the metric is missing. The comparison with 4.1 shows the 
same scanDuration aggregation.
   
   - Live validation: ✅ go - 3 of 3 scenarios driven live against the product
   
   | Scenario | Result | Live | Evidence |
   | --- | --- | --- | --- |
   | Reading a 3-file task group with deletes through the Spark 4.2 
MergingSortedRowDataReader reports a positive scanDuration alongside 
numSplits=3 and numDeletes=2 | ✅ pass | live | `./gradlew 
:iceberg-spark:iceberg-spark-4.2_2.13:test --tests 
TestMergingSortedRowDataReader` exit 0; after-fix-results.xml shows 34 tests, 0 
failures |
   | Adversarial: with the old reader source, the scanDuration metric is 
missing and the test catches it | ✅ pass | live | before-fix.log: 
metricsReportTasksAndDeletes fails with 'Expecting actual not to be 
null' |
   | No regression in the existing merging-reader behavior (merge order, 
deletes, other metrics) | ✅ pass | live | The other 33 tests in 
TestMergingSortedRowDataReader pass at the target commit |
   
   
   <details>
   <summary>Evidence: Test results after the change (JUnit XML)</summary>
   
   ```text
   <?xml version="1.0" encoding="UTF-8"?>
   <testsuite 
name="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
tests="34" skipped="0" failures="0" errors="0" 
timestamp="2026-11-24T04:54:52.212Z" 
hostname="vsowrirajan-microsoft-devbox-vsowrirajan-dev-6b698f4977-zvfhg" 
time="17.081">
     <properties/>
     <testcase name="mergeWithArrayOfStructsDoesNotCorruptElements()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="2.656"/>
     <testcase name="mergeRejectsSortFieldMissingFromSchema()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.625"/>
     <testcase name="mergeDescendingOrder()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.59"/>
     <testcase name="mergeRejectsUuidSortKey()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.506"/>
     <testcase name="constructorClosesOpenedFilesWhenAnotherFileFailsToOpen()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.382"/>
     <testcase name="mergeAfterSortOrderEvolution()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.359"/>
     <testcase name="mergeRejectsMissingSortOrderIdOnFirstFile()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="1.238"/>
     <testcase name="inputFileBlockHolderReportsSplitOffsets()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.712"/>
     <testcase name="mergeThreeFiles()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.483"/>
     <testcase name="mergeWithNulls()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.507"/>
     <testcase name="mergeRejectsUnknownSortOrderId()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.203"/>
     <testcase name="mergeRejectsUnsortedFiles()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.397"/>
     <testcase name="mergeWithStructColumnNotInSortOrder()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.477"/>
     <testcase name="mergeWithNullsLast()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.627"/>
     <testcase name="mergeSplitsOfOneFile()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.496"/>
     <testcase name="mergeDescendingWithNullsFirst()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.498"/>
     <testcase name="mergeFilesWithDifferentWrittenSchemas()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.397"/>
     <testcase name="mergeWithDuplicateKeys()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.289"/>
     <testcase name="mergeWithFileFullyRemovedByDeletesAmongMultipleFiles()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.477"/>
     <testcase name="mergeWithTrailingFloatingPointSortKey()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.44"/>
     <testcase name="mergeRejectsSingleTask()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.291"/>
     <testcase name="mergeWithSortOrderReferencingSameColumnMultipleTimes()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.344"/>
     <testcase name="mergeWithMapOfStructsDoesNotCorruptElements()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.35"/>
     <testcase name="mergeWithSortKeyNotInProjection()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.28"/>
     <testcase name="mergeWithCompositeSortKeyBreaksTiesOnSecondColumn()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.339"/>
     <testcase name="mergeWithPositionDeletes()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.432"/>
     <testcase name="inputFileBlockHolderReportsCorrectFile()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.244"/>
     <testcase name="mergeRejectsStaleSortOrderId()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.303"/>
     <testcase name="mergeWithNestedSortKeyInProjection()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.414"/>
     <testcase name="mergeWithBucketedUuidSortKey()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.374"/>
     <testcase name="mergeTwoSortedFiles()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.24"/>
     <testcase name="mergeRejectsFloatingPointSortKeyFollowedByAnotherKey()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.249"/>
     <testcase name="metricsReportTasksAndDeletes()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.421"/>
     <testcase name="mergeRejectsNestedSortKeyNotInProjection()" 
classname="org.apache.iceberg.spark.source.TestMergingSortedRowDataReader" 
time="0.41"/>
     <system-out><![CDATA[--
   -- Licensed to the Apache Software Foundation (ASF) under one or more
   -- contributor license agreements.  See the NOTICE file distributed with
   -- this work for additional information regarding copyright ownership.
   -- The ASF licenses this file to You under the Apache License, Version 2.0
   -- (the "License"); you may not use this file except in compliance with
   -- the License.  You may obtain a copy of the License at
   --
   --   http://www.apache.org/licenses/LICENSE-2.0
   --
   -- Unless required by applicable law or agreed to in writing, software
   -- distributed under the License is distributed on an "AS IS" BASIS,
   -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   -- See the License for the specific language governing permissions and
   -- limitations under the License.
   --
   -- This file was copied from Apache Hive, at:
   -- 
https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/sql/derby/hive-schema-3.1.0.derby.sql
   --
   -- This has been modified slightly for compatibility with older Hive 
versions.
   --
   -- Timestamp: 2011-09-22 15:32:02.024
   -- Source database is: ~/Work/repos/hive1/metastore/scripts/upgrade/derby/mdb
   -- Connection URL is: 
jdbc:derby:~/Work/repos/hive1/metastore/scripts/upgrade/derby/mdb
   -- Specified schema is: APP
   -- appendLogs: false
   -- ----------------------------------------------
   -- DDL Statements for functions
   -- ----------------------------------------------
   CREATE FUNCTION "APP"."NUCLEUS_ASCII" (C CHAR(1)) RETURNS INTEGER LANGUAGE 
JAVA PARAMETER STYLE JAVA READS SQL DATA CALLED ON NULL INPUT EXTERNAL NAME 
'org.datanucleus.store.rdbms.adapter.DerbySQLFunction.ascii'  
   CREATE FUNCTION "APP"."NUCLEUS_MATCHES" (TEXT VARCHAR(8000),PATTERN 
VARCHAR(8000)) RETURNS INTEGER LANGUAGE JAVA PARAMETER STYLE JAVA READS SQL 
DATA CALLED ON NULL INPUT EXTERNAL NAME 
'org.datanucleus.store.rdbms.adapter.DerbySQLFunction.matches'  
   -- ----------------------------------------------
   -- DDL Statements for tables
   -- ----------------------------------------------
   CREATE TABLE "APP"."DBS" (   "DB_ID" BIGINT NOT NULL,   "DESC" 
VARCHAR(4000),   "DB_LOCATION_URI" VARCHAR(4000) NOT NULL,   "NAME" 
VARCHAR(128),   "OWNER_NAME" VARCHAR(128),   "OWNER_TYPE" VARCHAR(10),   
"CTLG_NAME" VARCHAR(256) ) 
   CREATE TABLE "APP"."TBL_PRIVS" ("TBL_GRANT_ID" BIGINT NOT NULL, 
"CREATE_TIME" INTEGER NOT NULL, "GRANT_OPTION" SMALLINT NOT NULL, "GRANTOR" 
VARCHAR(128), "GRANTOR_TYPE" VARCHAR(128), "PRINCIPAL_NAME" VARCHAR(128), 
"PRINCIPAL_TYPE" VARCHAR(128), "TBL_PRIV" VARCHAR(128), "TBL_ID" BIGINT, 
"AUTHORIZER" VARCHAR(128)) 
   CREATE TABLE "APP"."DATABASE_PARAMS" ("DB_ID" BIGINT NOT NULL, "PARAM_KEY" 
VARCHAR(180) NOT NULL, "PARAM_VALUE" VARCHAR(4000)) 
   CREATE TABLE "APP"."TBL_COL_PRIVS" ("TBL_COLUMN_GRANT_ID" BIGINT NOT NULL, 
"COLUMN_NAME" VARCHAR(767), "CREATE_TIME" INTEGER NOT NULL, "GRANT_OPTION" 
SMALLINT NOT NULL, "GRANTOR" VARCHAR(128), "GRANTOR_TYPE" VARCHAR(12
   
   ... [747359 bytes truncated] ...
   
   COUNT, value=1}, addedDataFiles=CounterResult{unit=COUNT, value=2}, 
removedDataFiles=null, totalDataFiles=CounterResult{unit=COUNT, value=2}, 
addedDeleteFiles=null, addedEqualityDeleteFiles=null, 
addedPositionalDeleteFiles=null, addedDVs=null, removedDeleteFiles=null, 
removedEqualityDeleteFiles=null, removedPositionalDeleteFiles=null, 
removedDVs=null, totalDeleteFiles=CounterResult{unit=COUNT, value=0}, 
addedRecords=CounterResult{unit=COUNT, value=2}, removedRecords=null, 
totalRecords=CounterResult{unit=COUNT, value=2}, 
addedFilesSizeInBytes=CounterResult{unit=BYTES, value=1470}, 
removedFilesSizeInBytes=null, totalFilesSizeInBytes=CounterResult{unit=BYTES, 
value=1470}, addedPositionalDeletes=null, removedPositionalDeletes=null, 
totalPositionalDeletes=CounterResult{unit=COUNT, value=0}, 
addedEqualityDeletes=null, removedEqualityDeletes=null, 
totalEqualityDeletes=CounterResult{unit=COUNT, value=0}, 
manifestsCreated=CounterResult{unit=COUNT, value=1}, 
manifestsReplaced=CounterResult{
 unit=COUNT, value=0}, manifestsKept=CounterResult{unit=COUNT, value=0}, 
manifestEntriesProcessed=null}, metadata={iceberg-version=Apache Iceberg 
4df8ea7 (commit )}}
   [TThreadPoolServer WorkerProcess-0] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore - 1: source:127.0.0.1 get_table 
: db=default tbl=test_merging_reader
   [TThreadPoolServer WorkerProcess-0] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore.audit - ugi=coder    
ip=127.0.0.1    cmd=source:127.0.0.1 get_table : db=default 
tbl=test_merging_reader     
   [Test worker] INFO org.apache.iceberg.SnapshotScan - Scanning table 
hive.default.test_merging_reader snapshot 7192580759365256794 created at 
2026-11-24T04:55:09.153+00:00 with filter true
   [Test worker] INFO org.apache.iceberg.metrics.LoggingMetricsReporter - 
Received metrics report: ScanReport{tableName=hive.default.test_merging_reader, 
snapshotId=7192580759365256794, filter=true, schemaId=1, projectedFieldIds=[1, 
3, 4], projectedFieldNames=[id, location, location.city], 
scanMetrics=ScanMetricsResult{totalPlanningDuration=TimerResult{timeUnit=NANOSECONDS,
 totalDuration=PT0.007645888S, count=1}, 
resultDataFiles=CounterResult{unit=COUNT, value=2}, 
resultDeleteFiles=CounterResult{unit=COUNT, value=0}, 
totalDataManifests=CounterResult{unit=COUNT, value=1}, 
totalDeleteManifests=CounterResult{unit=COUNT, value=0}, 
scannedDataManifests=CounterResult{unit=COUNT, value=1}, 
skippedDataManifests=CounterResult{unit=COUNT, value=0}, 
totalFileSizeInBytes=CounterResult{unit=BYTES, value=1470}, 
totalDeleteFileSizeInBytes=CounterResult{unit=BYTES, value=0}, 
skippedDataFiles=CounterResult{unit=COUNT, value=0}, 
skippedDeleteFiles=CounterResult{unit=COUNT, value=0}, scannedDeleteManif
 ests=CounterResult{unit=COUNT, value=0}, 
skippedDeleteManifests=CounterResult{unit=COUNT, value=0}, 
indexedDeleteFiles=CounterResult{unit=COUNT, value=0}, 
equalityDeleteFiles=CounterResult{unit=COUNT, value=0}, 
positionalDeleteFiles=CounterResult{unit=COUNT, value=0}, 
dvs=CounterResult{unit=COUNT, value=0}}, metadata={iceberg-version=Apache 
Iceberg 4df8ea7 (commit )}}
   [TThreadPoolServer WorkerProcess-0] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore - 1: source:127.0.0.1 get_table 
: db=default tbl=test_merging_reader
   [TThreadPoolServer WorkerProcess-0] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore.audit - ugi=coder    
ip=127.0.0.1    cmd=source:127.0.0.1 get_table : db=default 
tbl=test_merging_reader     
   [TThreadPoolServer WorkerProcess-0] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore - 1: source:127.0.0.1 get_table 
: db=default tbl=test_merging_reader
   [TThreadPoolServer WorkerProcess-0] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore.audit - ugi=coder    
ip=127.0.0.1    cmd=source:127.0.0.1 get_table : db=default 
tbl=test_merging_reader     
   [Test worker] INFO org.apache.iceberg.BaseMetastoreTableOperations - 
Refreshing table metadata from new version: 
file:/tmp/hive8360945625259599700/test_merging_reader/metadata/00004-722c1617-ce3f-4607-b6a0-4aed338e0199.metadata.json
   [TThreadPoolServer WorkerProcess-0] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore - 1: source:127.0.0.1 get_table 
: db=default tbl=test_merging_reader
   [TThreadPoolServer WorkerProcess-0] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore.audit - ugi=coder    
ip=127.0.0.1    cmd=source:127.0.0.1 get_table : db=default 
tbl=test_merging_reader     
   [TThreadPoolServer WorkerProcess-0] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore - 1: source:127.0.0.1 drop_table 
: db=default tbl=test_merging_reader
   [TThreadPoolServer WorkerProcess-0] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore.audit - ugi=coder    
ip=127.0.0.1    cmd=source:127.0.0.1 drop_table : db=default 
tbl=test_merging_reader    
   [Test worker] INFO org.apache.iceberg.CatalogUtil - 1 Manifests to delete 
   [Test worker] INFO org.apache.iceberg.hive.HiveCatalog - Dropped table: 
default.test_merging_reader
   [Test worker] INFO hive.metastore - Trying to connect to metastore with URI 
thrift://localhost:35117
   [Test worker] INFO hive.metastore - Opened a connection to metastore, 
current connections: 2
   [Test worker] INFO hive.metastore - Connected to metastore.
   [TThreadPoolServer WorkerProcess-1] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore - 2: source:127.0.0.1 
get_all_databases
   [TThreadPoolServer WorkerProcess-1] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore.audit - ugi=coder    
ip=127.0.0.1    cmd=source:127.0.0.1 get_all_databases  
   [TThreadPoolServer WorkerProcess-1] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore - 2: Opening raw store with 
implementation class:org.apache.hadoop.hive.metastore.ObjectStore
   [TThreadPoolServer WorkerProcess-1] INFO 
org.apache.hadoop.hive.metastore.ObjectStore - ObjectStore, initialize called
   [TThreadPoolServer WorkerProcess-1] INFO 
org.apache.hadoop.hive.metastore.ObjectStore - Initialized ObjectStore
   [TThreadPoolServer WorkerProcess-1] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore - 2: source:127.0.0.1 
get_all_tables: db=default
   [TThreadPoolServer WorkerProcess-1] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore.audit - ugi=coder    
ip=127.0.0.1    cmd=source:127.0.0.1 get_all_tables: db=default 
   [TThreadPoolServer WorkerProcess-1] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore - 2: Cleaning up thread local 
RawStore...
   [Test worker] INFO hive.metastore - Closed a connection to metastore, 
current connections: 1
   [TThreadPoolServer WorkerProcess-1] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore.audit - ugi=coder    
ip=127.0.0.1    cmd=Cleaning up thread local RawStore...        
   [Test worker] INFO org.apache.hadoop.hive.metastore.HiveMetaStore - 0: 
Cleaning up thread local RawStore...
   [Test worker] INFO org.apache.hadoop.hive.metastore.HiveMetaStore.audit - 
ugi=coder  ip=unknown-ip-addr      cmd=Cleaning up thread local RawStore...     
   
   [TThreadPoolServer WorkerProcess-1] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore - 2: Done cleaning up thread 
local RawStore
   [TThreadPoolServer WorkerProcess-1] INFO 
org.apache.hadoop.hive.metastore.HiveMetaStore.audit - ugi=coder    
ip=127.0.0.1    cmd=Done cleaning up thread local RawStore      
   [Test worker] INFO org.apache.hadoop.hive.metastore.HiveMetaStore - 0: Done 
cleaning up thread local RawStore
   [Test worker] INFO org.apache.hadoop.hive.metastore.HiveMetaStore.audit - 
ugi=coder  ip=unknown-ip-addr      cmd=Done cleaning up thread local RawStore   
   
   [Test worker] INFO org.apache.spark.SparkContext - SparkContext is stopping 
with exitCode 0 from stop at TestBase.java:116.
   [dispatcher-event-loop-0] INFO 
org.apache.spark.MapOutputTrackerMasterEndpoint - 
MapOutputTrackerMasterEndpoint stopped!
   [Test worker] INFO org.apache.spark.storage.memory.MemoryStore - MemoryStore 
started with capacity 1716.0 MiB
   [Test worker] INFO org.apache.spark.storage.memory.MemoryStore - MemoryStore 
cleared
   [Test worker] INFO org.apache.spark.storage.BlockManager - BlockManager 
stopped
   [Test worker] INFO org.apache.spark.storage.BlockManagerMaster - 
BlockManagerMaster stopped
   [dispatcher-event-loop-1] INFO 
org.apache.spark.scheduler.OutputCommitCoordinator$OutputCommitCoordinatorEndpoint
 - OutputCommitCoordinator stopped!
   [Test worker] INFO org.apache.spark.SparkContext - Successfully stopped 
SparkContext (Uptime: 18180 ms)
   ]]></system-err>
   </testsuite>
   ```
   </details>
   <details>
   <summary>Evidence: Test run with the old reader source (fails)</summary>
   
   `TestMergingSortedRowDataReader.metricsReportTasksAndDeletes FAILED: 
java.lang.AssertionError: Expecting actual not to be null 
(TestMergingSortedRowDataReader.java:531)`
   
   ```text
   
   Failures:
     
org.apache.iceberg.spark.source.TestMergingSortedRowDataReader.metricsReportTasksAndDeletes()
   
   1 test completed, 1 failed
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Execution failed for task ':iceberg-spark:iceberg-spark-4.2_2.13:test'.
   > There were failing tests. See the report at: 
file://{run-worktree}/spark/v4.2/spark/build/reports/tests/test/index.html
   
   * Try:
   > Run with --scan to get full insights.
   
   BUILD FAILED in 32s
   ```
   </details>
   
   ## Pipeline
   
   Updates from [git push 
no-mistakes](https://github.com/kunchenguid/no-mistakes)
   
   <!-- no-mistakes-pipeline-attestation:v1 
{"head_sha":"4df8ea7f28557bee2bd858f0f8510db23876f8d5","steps":[{"step":"intent","status":"completed"},{"step":"rebase","status":"completed"},{"step":"review","status":"completed"},{"step":"test","status":"completed"},{"step":"document","status":"completed"},{"step":"lint","status":"completed"},{"step":"push","status":"completed"},{"step":"pr","status":"running"},{"step":"ci","status":"pending"}],"live_validation":{"verdict":"go","live":3,"total":3}}
 -->
   
   <details>
   <summary>✅ **Intent** - passed</summary>
   
   ✅ No issues found.
   </details>
   
   <details>
   <summary>✅ **Rebase** - passed</summary>
   
   ✅ No issues found.
   </details>
   
   <details>
   <summary>✅ **Review** - passed</summary>
   
   ✅ No issues found.
   </details>
   
   <details>
   <summary>✅ **Test** - passed</summary>
   
   ✅ No issues found.
   - Live validation: ✅ go - 3 of 3 scenarios driven live against the product
   
   | Scenario | Result | Live | Evidence |
   | --- | --- | --- | --- |
   | Reading a 3-file task group with deletes through the Spark 4.2 
MergingSortedRowDataReader reports a positive scanDuration alongside 
numSplits=3 and numDeletes=2 | ✅ pass | live | `./gradlew 
:iceberg-spark:iceberg-spark-4.2_2.13:test --tests 
TestMergingSortedRowDataReader` exit 0; after-fix-results.xml shows 34 tests, 0 
failures |
   | Adversarial: with the old reader source, the scanDuration metric is 
missing and the test catches it | ✅ pass | live | before-fix.log: 
metricsReportTasksAndDeletes fails with &#39;Expecting actual not to be 
null&#39; |
   | No regression in the existing merging-reader behavior (merge order, 
deletes, other metrics) | ✅ pass | live | The other 33 tests in 
TestMergingSortedRowDataReader pass at the target commit |
   
   - <code>`./gradlew :iceberg-spark:iceberg-spark-4.2_2.13:test --tests 
org.apache.iceberg.spark.source.TestMergingSortedRowDataReader --offline` at 
target commit (34 tests, 0 failures)</code>
   - <code>Restored the pre-change `MergingSortedRowDataReader.java` from 
21153b1ff and ran `--tests 
TestMergingSortedRowDataReader.metricsReportTasksAndDeletes`: fails with 
`Expecting actual not to be null` at line 531, so the new assertion catches the 
missing metric; the source was restored afterwards and the worktree is 
clean</code>
   - <code>Diffed the 4.1 and 4.2 `MergingSortedRowDataReader` to confirm they 
compute scanDuration the same way</code>
   </details>
   
   <details>
   <summary>✅ **Document** - passed</summary>
   
   ✅ No issues found.
   </details>
   
   <details>
   <summary>✅ **Lint** - passed</summary>
   
   ✅ No issues found.
   </details>
   
   <details>
   <summary>✅ **Push** - passed</summary>
   
   ✅ No issues found.
   </details>
   


-- 
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