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

   ### Describe the bug
   
   Passing a SQL statement containing an invalid placeholder `$0` causes 
`SessionState::statement_to_plan` to panic due to integer overflow.
   
   ```
   thread 'main' panicked at 'attempt to subtract with overflow',
   
$HOME\.cargo\registry\src\index.crates.io-6f17d22bba15001f\datafusion-sql-19.0.0\src\expr\value.rs:100:26
   ```
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   Returning an `Err(_)` value to indicate a problem in a provided SQL 
statement.
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to