apache / incubator-gluten

Gluten is a middle layer responsible for offloading JVM-based SQL engines' execution to native engines.
https://gluten.apache.org/
Apache License 2.0
1.07k stars 380 forks source link

[CH] Throw divide by zero exception when using decimal #4193

Open shuai-xu opened 6 months ago

shuai-xu commented 6 months ago

Backend

CH (ClickHouse)

Bug description

When run sql select cast(clk as decimal)/cast(0 as decimal) as p from xxxxx, it throw exception: image

Spark version

Spark-3.3.x

Spark configurations

No response

System information

No response

Relevant logs

No response

taiyang-li commented 6 months ago

duplicated with https://github.com/oap-project/gluten/issues/3452