rui-mo commented on issue #13685:
URL: https://github.com/apache/gluten/issues/13685#issuecomment-7053938199

   @zhztheplayer Good question. From what I can see, tests are only part of the 
issue, and #13647 is the right fix for differences that only affect tests. My 
main concern is the user-facing error reporting.
   
   Gluten is intended to be a drop-in replacement for Spark, so when a query 
fails, users should get clear, actionable error messages without needing to 
understand Velox internals. This is especially important for users who have 
little or no familiarity with Velox.
   
   Some concrete examples:
   - **PySpark:** PySpark maps exceptions based on their Java types. In vanilla 
Spark 4, `except ArithmeticException` catches division-by-zero errors. With 
Gluten, it doesn't, and users get a raw `Py4JJavaError` instead.
   - **JDBC/ODBC and Spark Connect:** Clients don't receive SQLSTATE or error 
conditions.
   - **Error messages:** Users see generic messages like "Job aborted", 
`GlutenException`, or Velox internals instead of meaningful Spark errors.
   
   Based on the discussions here and in the Velox community, I think we can 
start by handling this in Gluten, improve Velox error messages where needed, 
and keep error codes optional. In some cases, Gluten can already derive the 
correct Spark error condition from the Velox message, as #13135 does for cast 
errors. This avoids placing additional requirements on Velox and is consistent 
with the direction of the ongoing Gluten PRs.
   
   Does this make sense to you?
   
   cc: @philo-he @pedrumj2 @felipepessoto 


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