DTStack / DTStack/chunjun

导入clickhouse字段类型是decimal类型报错

Open
#647 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
4.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
clickhouse官网显示Decimal(P,S),但是ClickhouseRawTypeConverter.java支持的decimal类型没有精度,导致导入clickhouse的字段类型是decimal都抛出找不到decimal[p,s]异常

**To Reproduce**
Steps to reproduce the behavior:
1. 在clickhouse库新建表,其中字段包含Decimal(18, 6),Decimal64(6)..等相关decimal字段类型
2. flink1.12.7版本,write 填写clickhouse相关信息
3. log显示出现报错信息

**Screenshots**
![image](https://user-images.githubusercontent.com/95574683/160820816-bdca8c0f-8837-4c91-afea-bc4d749986f3.png)
![image](https://user-images.githubusercontent.com/95574683/160816584-3588069a-b18d-428e-9b20-e9dbfc02b6f3.png)
![image](https://user-images.githubusercontent.com/95574683/160816720-a2324c48-58c8-4b8e-89c4-d141259348f3.png)

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.