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

   **Describe the bug**
   A clear and concise description of what the bug is.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   
   ```bash
   DataFusion CLI v12.0.0
   ❯ select 1::decimal(0);
   thread 'main' panicked at 'attempt to subtract with overflow', 
/Users/willy/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-23.0.0/src/datatypes/datatype.rs:1001:46
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   ```
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   show something like this
   ```bash
   ❯ select 10::decimal(1);
   ArrowError(InvalidArgumentError("10 is too large to store in a Decimal128 of 
precision 1. Max is 9"))
   ```
   
   **Additional context**
   Add any other context about the problem here.
   


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