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

   ### Describe the bug
   
   `LogicalPlan::replace_placeholders_with_values` subtracts one from a parsed 
`usize` value, which may result in a panic due to integer overflow.
   
   
<https://github.com/apache/arrow-datafusion/blob/fd350fa176b11ae6dc82d7813ed57290ac026c26/datafusion/expr/src/logical_plan/plan.rs#L617-L623>
   
   
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   Returning an `Err(_)` value to indicate the problem, like it does in other 
error cases.
   
   ### Additional context
   
   Similar to #5786 but occurs at a later stage.


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