apache / apache/gluten

[CH] core dump at toDecimalString with null value

Open
#5,883 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

sql:
```
create fact_table(
week_beg_dt date,
gmv decimal(19, 4),
total_items int
)
spark.sql(sql).show(10)

select sum(gmv), sum(total_items) from fact_table
where extract(month from week_beg_dt) = 13
```

exception:
![image](https://github.com/apache/incubator-gluten/assets/23639010/d0314e03-0469-42f3-99d4-2cebf6f7e3a0)

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