-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
时间精度问题 #1699
Open
3 tasks done
Labels
bug
Something isn't working
Comments
补充配置文件{
"job": {
"content": [
{
"reader": {
"parameter": {
"password": "xxxxxxxxxxxx",
"startLocation": "2001-09-03 19:38:00",
"increColumn": "CS_TSTP",
"useMaxFunc": false,
"column": [
{
"name": "AGE",
"type": "NUMBER"
},
{
"name": "BIRTH2",
"type": "DATE"
},
{
"name": "CESHI2",
"type": "VARCHAR2"
},
{
"name": "CESHIINT",
"type": "INT"
},
{
"format": "yyyy-MM-dd HH:mm:ss",
"name": "CS_TSTP",
"type": "TIMESTAMP"
},
{
"name": "HIGH",
"type": "NUMBER"
},
{
"name": "ID",
"type": "NUMBER"
},
{
"name": "MOMOU",
"type": "VARCHAR2"
},
{
"name": "NAME",
"type": "VARCHAR2"
},
{
"name": "WEIGHT",
"type": "NUMBER"
}
],
"increment": true,
"connection": [
{
"schema": "HUANGFU",
"jdbcUrl": [
"jdbc:dm://xxxxxxxxx:xxxxx"
],
"table": [
"PERSON_INFO"
]
}
],
"where": "",
"polling": true,
"increColumnType": "TIMESTAMP",
"username": "HUANGFU"
},
"name": "dmreader"
},
"writer": {
"parameter": {
"tableFields": [
"AGE",
"BIRTH2",
"CESHI2",
"CESHIINT",
"CS_TSTP",
"HIGH",
"ID",
"MOMOU",
"NAME",
"WEIGHT"
],
"producerSettings": {
"retries": "3",
"request.timeout.ms": "60000",
"batch.size": "16384",
"acks": "0",
"bootstrap.servers": "xxxx:9092,xxxx:9092,xxxxx:9092",
"buffer.memory": "33554432"
},
"topic": "dm_tp_w_0530"
},
"name": "kafkawriter"
}
}
],
"setting": {
"speed": {
"bytes": 1024
}
}
}
} |
Open
issue 描述中的startLocaltion 不是标准的时间戳格式,如果转成正常的时间戳格式呢? |
抱歉,最近比较忙,没有及时回复。 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Search before asking
What happened
目前项目上使用 时间戳当作增量字段【startLocation】,同步dm数据,当同步2009年9月9号之前的数据的时候,项目报错:
经查验源代码中有如下逻辑,代码位置
com.dtstack.chunjun.connector.jdbc.util.JdbcUtil#getMillis
代码如下:
经查验,上述代码对于时间单位的判断是基于时间戳长度来判断的
但是
2001-09-09 09:46:39
之前的毫秒级时间戳为999999999999
,长度为12位,导致在上述代码判断中,出现无法判断单位的情况!所以报错:What you expected to happen
当我使用毫秒且时间为 2001-09-09 09:46:39 之前的数据,希望可用!
How to reproduce
rdb类型的数据,startLocation数值为
2001-09-09 09:46:39
之前的时间Anything else
No response
Version
master
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: