NoahKusaba opened a new issue, #2967:
URL: https://github.com/apache/datafusion-ballista/issues/2967

   **Describe the bug**
   
   When a task fails with a DataFusion or Arrow error, the client gets an 
`Execution` error whose message is the `Debug` form of the original error, 
nested in job and stage text:
   
   ```
   Execution error: Job 038GK3JVWG000 failed: Job failed due to stage 1 failed: 
Task failed due to runtime execution error: 
DataFusionError(Shared(External(ArrowError(DivideByZero))))
   ```
   
   DataFusion reports the same query as `Arrow error: Divide by zero error`. 
The original error's type and message are lost, so callers can't match on them, 
and messages with quotes or newlines come back escaped.
   
   **To Reproduce**
   
   Standalone Ballista on `main` (446fa54c9), default settings, either planner:
   
   ```sql
   SELECT 1/0;
   ```
   
   **Expected behavior**
   
   The error keeps the original message, ideally as the root of the error chain 
(`DataFusionError::find_root`), with the job and stage as context.
   
   **Additional context**
   
   Found by running DataFusion's sqllogictest files on Ballista (#2945): 304 
records whose query fails with the right error but don't match the expected 
error text (division by zero, invalid regex, `DATE_BIN` stride, timestamp 
parsing, …). #2885 fixed the same problem for errors while encoding the plan on 
the client.
   


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