We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
{ "job": { "setting": { "speed": { "channel": 4 }, "errorLimit": { "record": 0, "percentage": 0.1 } }, "content": [ { "reader": { "name": "mysqlreader", "parameter": { "username": "root", "password": "XXXXX", "column": [ "" ], "where": "dt='${bizdate}'", "connection": [ { "table": ["XXXXX"], "jdbcUrl": ["jdbc:mysql://XXXX:3306/za_ods?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai"] } ] } }, "writer": { "name": "oceanbasev10writer", "parameter": { "obWriteMode": "insert", "column": [ "" ], "preSql": ["truncate table XXXXX"], "connection": [ { "jdbcUrl": "||dsc_ob10_dsc||obyyt:nldz||dsc_ob10_dsc||jdbc:oceanbase://XXXX:2883/dgped_bus_zaxq?useLocalSessionState=true&allowBatch=true&allowMultiQueries=true&rewriteBatchedStatements=true", "table": ["XXXX"] } ], "username": "root", "password": "XXXX", "writerThreadCount": 10, "batchSize": 1000, "memstoreThreshold": "0.9" } } } ] } }
加上"preSql": ["truncate table XXXXX"], 后,发现任务能运行成功,但是表里没有数据。去掉这个后,没问题。
The text was updated successfully, but these errors were encountered:
oceabase的是4.2.5版本。有人遇到过这个情况吗,truncate table 和delete from 都不行
Sorry, something went wrong.
No branches or pull requests
{
"job": {
"setting": {
"speed": {
"channel": 4
},
"errorLimit": {
"record": 0,
"percentage": 0.1
}
},
"content": [
{
"reader": {
"name": "mysqlreader",
"parameter": {
"username": "root",
"password": "XXXXX",
"column": [
""
],
"where": "dt='${bizdate}'",
"connection": [
{
"table": ["XXXXX"],
"jdbcUrl": ["jdbc:mysql://XXXX:3306/za_ods?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai"]
}
]
}
},
"writer": {
"name": "oceanbasev10writer",
"parameter": {
"obWriteMode": "insert",
"column": [
""
],
"preSql": ["truncate table XXXXX"],
"connection": [
{
"jdbcUrl": "||dsc_ob10_dsc||obyyt:nldz||dsc_ob10_dsc||jdbc:oceanbase://XXXX:2883/dgped_bus_zaxq?useLocalSessionState=true&allowBatch=true&allowMultiQueries=true&rewriteBatchedStatements=true",
"table": ["XXXX"]
}
],
"username": "root",
"password": "XXXX",
"writerThreadCount": 10,
"batchSize": 1000,
"memstoreThreshold": "0.9"
}
}
}
]
}
}
加上"preSql": ["truncate table XXXXX"], 后,发现任务能运行成功,但是表里没有数据。去掉这个后,没问题。
The text was updated successfully, but these errors were encountered: