PostgreSQL compatibility: `round(float8)` should match PostgreSQL half-tie behavior
Open
bug
good first issue
- Dominant language
- Rust
- Stars
- 9.3k
- Forks
- 2.4k
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 344
Description
Split out from #22247.
### Mismatch
`round(float8)` should match PostgreSQL half-tie behavior (banker's rounding / round-half-to-even).
```sql
SELECT round(2.5::float8);
```
PostgreSQL:
```text
2
```
DataFusion:
```text
3.0
```
### Expected behavior
For PostgreSQL-compatible SQL semantics, DataFusion should either match PostgreSQL's result or raise the same class of domain/semantic error.
Contributor guide
Assessment
This issue has not been assessed yet.