apache / apache/gluten

[CH] Diff when cast double/float to string

Open
#3,675 0 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

CH (ClickHouse)

### Bug description

`select cast(21.0d as string);`

expected result is `21.0`, but return `21`

### Spark version

Spark-3.3.x

### Spark configurations

_No response_

### System information

_No response_

### Relevant logs

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `select cast(21.0d as string);` in the ClickHouse backend on Spark 3.3.x, then trace the cast-to-string handling for floating-point values. Done means the query returns `21.0` rather than `21`, with regression coverage for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
clickhouse, scala
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.