jonahgao opened a new issue, #7626:
URL: https://github.com/apache/arrow-datafusion/issues/7626
### Describe the bug
Set the option `datafusion.sql_parser.parse_float_as_decimal` to true, and
then input a decimal data that exceeds the maximum precision, it will panic.
### To Reproduce
```
DataFusion CLI v31.0.0
❯ set datafusion.sql_parser.parse_float_as_decimal=true;
0 rows in set. Query took 0.003 seconds.
❯ select 123456789.012345678901234567890123456789;
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value:
InvalidArgumentError("precision 39 is greater than max 38")',
arrow-datafusion/datafusion/common/src/scalar.rs:1729:18
```
### Expected behavior
Return an Error instead of panic.
### 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]