For a query like:
SELECT (SELECT 1 AS x, 2 AS y) AS col
The only message that the end user of an application built atop of DataFusion sees is:
Error: Invalid (non-executable) plan after Analyzer
caused by
Error during planning: Scalar subquery should only return one column, but found 2: x, y
Caused by:
Error during planning: Scalar subquery should only return one column, but found 2: x, y
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:
See #14429 for more information.
Describe the solution you'd likeAttach a well crafted Diagnostic
to the DataFusionError
, building on top of the foundations laid in #13664. See #14429 for more information.
No response
Additional contextNo response
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4