eliaperantoni opened a new issue, #14433:
URL: https://github.com/apache/datafusion/issues/14433

   ### Is your feature request related to a problem or challenge?
   
   For a query like:
   
   ```sql
   SELECT +'a'
   ```
   
   The only message that the end user of an application built atop of 
DataFusion sees is:
   
   ```
   Error during planning: Unary operator '+' only supports numeric, interval 
and timestamp types
   ```
   
   We want to provide a richer message that _references and highlights 
locations in the original SQL query_, and contextualises and helps the user 
understand the error. In the end, it would be possible to display errors in a 
fashion akin to what was enabled by #13664 for some errors:
   
   
![](https://github.com/user-attachments/assets/32efeb4f-aad9-41c9-a1e3-600a00d525c3)
   
   See #14429 for more information.
   
   ### Describe the solution you'd like
   
   Attach a well crafted `Diagnostic` to the `DataFusionError`, building on top 
of the foundations laid in #13664. See #14429 for more information.
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to