akshaytayal opened a new pull request, #13750:
URL: https://github.com/apache/gluten/pull/13750

   ## What changes are proposed in this pull request?
   
   Fixes #13749.
   
   For format-version 3 tables, `IcebergScanTransformer.doValidateInternal` 
checks for delete files through `finalPartitions`, which applies the scan's 
runtime filters. When the scan has a dynamic partition pruning filter, the DPP 
subquery has not run yet during validation, so the query fails with `Can't 
translate ... no subquery result` instead of running natively or falling back.
   
   This PR checks the planned Iceberg scan tasks (`getScanTasks`) instead, the 
same approach #12833 took for root paths. Without DPP, the planned tasks are 
the same ones `finalPartitions` was built from. With DPP, they also include the 
files the filter would prune, so a delete file in any planned task makes the 
scan fall back.
   
   Note: open PR #12629 rewrites the same check and also reads 
`finalPartitions`.
   
   ## How was this patch tested?
   
   New test in `VeloxIcebergSuite`: a v3 table joined with a dimension table, 
with the default AQE and broadcast settings.
   - Without deletes: the result matches vanilla Spark, and the scan is 
offloaded with a DPP runtime filter. Without this fix, the test fails with the 
error above on Spark 3.5 and 4.1.
   - After a `DELETE` writes a deletion vector: the DPP-filtered scan falls 
back ("Delete file format puffin is not supported") and the result matches 
vanilla Spark.
   
   Ran the Velox Iceberg suites locally on Spark 3.5 (`VeloxIcebergSuite`, 
`enhanced.VeloxIcebergSuite`, `VeloxTPCHIcebergSuite`, 
`VeloxIcebergSortOrderSuite`: 111 passed) and `VeloxIcebergSuite` on Spark 4.1 
(27 passed).
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: GitHub Copilot CLI 1.0.109
   


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

  • [PR] [GLUTEN-13749][VL] Fix I... akshaytayal (via GitHub) via commits

Reply via email to