hiltontj opened a new issue, #9738:
URL: https://github.com/apache/arrow-datafusion/issues/9738

   ### Is your feature request related to a problem or challenge?
   
   Currently, when replacing `ParamValue`s during logical planning, if there 
are missing parameters in what was provided, a `DatafusionError::Internal` will 
be returned.
   
   For example, in our service, we are passing query parameters via an HTTP 
request along with a query string. Consider this query:
   ```
   SELECT * FROM foo WHERE bar = $bar
   ```
   We would expect that the user passes something like:
   ```json
   {
     "params": {
       "bar": "baz"
     }
   }
   ```
   in the request, along with the query string. But, if they do not, then we 
would like to return a `4xx` error code, instead of a `5xx`.
   
   ### Describe the solution you'd like
   
   It would be nice if a specific variant was returned, e.g., 
`DatafusionError::MissingParameters`, as this would allow us to handle this 
error differently than other `Internal` errors.
   
   ### Describe alternatives you've considered
   
   We could parse the `Internal` error message, but that is not very convenient.
   
   ### Additional context
   
   n/a


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

Reply via email to