apache / apache/gluten

[VL] Results are mismatch with the vanilla Spark when cast((decmial(20,4)), float)

Open
#4,891 6 comments 0 reactions 1 assignee Claimed by @kecookier View on GitHub
bug triage
Dominant language
Scala
Stars
1.6k
Forks
657
Avg merge
2d 14h
Merged PRs (30d)
80

Description

### Backend

VL (Velox)

### Bug description

```sql
-- Spark
select cast(cast('29925.0000' as decimal(20,4)) as float)
29925.0
Time taken: 2.49 seconds, Fetched 1 row(s)

-- Gluten
select cast(cast('29925.0000' as decimal(20,4)) as float)
29924.998
Time taken: 2.49 seconds, Fetched 1 row(s)
```

### Spark version

None

### Spark configurations

_No response_

### System information

_No response_

### Relevant logs

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.