apache / apache/gluten

[VL][1.2] Result of `cast(double as string)` is inconsistent with vanilla spark

Open
#7,730 5 comments 0 reactions 0 assignees 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:
```
create table t1 as select cast(0.000642224797047674666 as double) as c1;
select cast(c1 as string) from t1;
```

vanilla spark result:
```
6.422247970476747E-4
```

gluten 1.2.0 with velox result:
```
6.4222479704767466E-4
```

### Spark version

Spark-3.5.x

### 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.