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

   ## What changes are proposed in this pull request?
   
   Delta plans each query with Spark jobs over its transaction log: file 
selection, data skipping and metadata-only aggregates read the `_delta_log` 
files or the state Delta caches from them. Gluten offloads the operators above 
those row sources, so every task converts the AddFile rows to columnar and back 
around small native filters. On a Delta workload this made planning 40-115 ms 
slower per query than vanilla Spark, and the gap grows with the log (330 vs 160 
ms on a 20k-file table).
   
   This adds `FallbackDeltaLogQuery`: a plan whose every source is a 
`DeltaLogFileIndex` scan or Delta's cached state RDD ("Delta Table State ...") 
stays on Spark. Plans that read table data are unchanged. Planning now matches 
vanilla Spark, and query execution does not change.
   
   cc @zhouyuan @felipepessoto
   
   ## How was this patch tested?
   
   New test in `VeloxDeltaSuite` (fails without the rule). `VeloxDeltaSuite` 
and `OptimizeMetadataOnlyDeltaQuerySuite` pass on Spark 3.5; the DV, 
DELETE/UPDATE and `DeltaSuite` suites also passed with the rule. 
`VeloxDeltaSuite` also passes on Spark 4.1 (Delta 4).
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (claude-opus-5-5)
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


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