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

   ## What changes are proposed in this pull request?
   
   **This PR is for demonstration only and must not be merged.** The fix lives 
in #12292.
   
   It contains only the regression test from #12292, *without* the fix, to 
prove the test is a valid reproduction: it fails on current `main` and passes 
once the fix is applied.
   
   `GlutenDeltaStatsSuite` writes a Delta table whose per-file min/max 
statistics over a `TIMESTAMP_NTZ` column cannot be offloaded to Velox. Without 
the fix, `GlutenDeltaJobStatsTracker` unconditionally casts the statistics 
projection to a `WholeStageTransformer`, so the write task crashes with:
   
   ```
   java.lang.ClassCastException: org.apache.spark.sql.execution.ProjectExec 
cannot be cast to org.apache.gluten.execution.WholeStageTransformer
   ```
   
   ## How was this patch tested?
   
   This *is* the test. CI on this PR is expected to FAIL (red) at 
`GlutenDeltaStatsSuite`, demonstrating the bug on current `main`. The companion 
fix PR #12292 runs the same test green.
   
   Locally verified (Spark 3.5, Scala 2.12): without the fix the suite fails 
with the ClassCastException above (`Tests: succeeded 0, failed 1`); with the 
fix it passes (`succeeded 1, failed 0`).
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: GitHub Copilot CLI (claude-opus-4.8)
   


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