jonahgao opened a new issue, #7497:
URL: https://github.com/apache/arrow-datafusion/issues/7497
### Describe the bug
To Reproduce:
```shell
DataFusion CLI v30.0.0
❯ select cast('1000' as decimal(10,8));
+--------------+
| Utf8("1000") |
+--------------+
| 10.00000000 |
+--------------+
1 row in set. Query took 0.045 seconds.
```
### To Reproduce
_No response_
### Expected behavior
It should raise an overflow error, like in PostgreSQL.
```
postgres=# select cast('1000' as decimal(10,8));
ERROR: numeric field overflow
DETAIL: A field with precision 10, scale 8 must round to an absolute value
less than 10^2
```
### 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]