MichaelScofield opened a new issue, #19921:
URL: https://github.com/apache/datafusion/issues/19921
### Describe the bug
`SELECT ROUND('999.9'::DECIMAL(4,1))` produces `100.0` which is incorrect.
### To Reproduce
Launch a `datafusion-cli`, execute:
```shell
./datafusion-cli
DataFusion CLI v52.0.0
> SELECT ROUND('999.9'::DECIMAL(4,1));
+----------------------+
| round(Utf8("999.9")) |
+----------------------+
| 100.0 |
+----------------------+
1 row(s) fetched.
Elapsed 0.020 seconds.
```
### Expected behavior
Expect `1000`, like in the postgresql:
```shell
postgres=# SELECT ROUND('999.9'::DECIMAL(4,1));
round
-------
1000
(1 row)
```
### 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]