alibaba / alibaba/DataX

同步数据到clickhouse的datetime64类型,会丢失精度

Open
#1,544 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

@dingxiaobo 同步数据到clickhouse的datetime64类型,会丢失精度
sqlserver原表字段类型:datetime(3)
![image](https://user-images.githubusercontent.com/60651981/195486370-7e7ffb3f-3c1b-458b-bf14-ec4dbcbc35ce.png)
clickhouse字段类型:datetime64
![image](https://user-images.githubusercontent.com/60651981/195486907-e21dab59-46f7-4ec2-bf82-d0781295cca0.png)

_Originally posted by @MrZhao1024B in https://github.com/alibaba/DataX/issues/1465#issuecomment-1276955878_

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the synchronization from a SQL Server datetime(3) source into a ClickHouse datetime64 field using the examples and screenshots in the issue. Trace the data path that handles these datetime values and compare source and destination precision. Done means the fractional-second precision is preserved in ClickHouse without loss.

Written by the indexing model from the issue text.

Assessment

Tech stack
clickhouse, sql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.