Start Data Comparison Task
Starts the specified data comparison task. Advanced comparison settings can also be passed when starting the task.
Request URL: /openapi/v1/comparedata/execute
Request Method: POST
Request Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| taskId | String | Yes | Task ID. You can call Query Data Comparison Main Task Details to query it. | cd-std5nms37o |
| compareOption | Object | No | Advanced comparison settings used when starting the task. See compareOption Fields. | { "parallel": 5, "enabled": true } |
compareOption Fields
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| parallel | Integer | No | Comparison concurrency. | 5 |
| splitNum | String | No | Comparison shard size. | 1000 |
| differSize | String | No | Upper limit of stored inconsistent records. | 1000 |
| floatPrecision | String | No | FLOAT comparison precision. | 3 |
| doublePrecision | String | No | DOUBLE comparison precision. | 4 |
| stringTrimStrategy | String | No | String whitespace handling strategy. Optional values: LTrim, RTrim, Trim. | Trim |
| enabled | Boolean | No | Whether to enable advanced settings. | true |
Request Example
{
"taskId": "cd-std5nms37o",
"compareOption": {
"parallel": 5,
"splitNum": "1000",
"differSize": "1000",
"floatPrecision": "3",
"doublePrecision": "4",
"stringTrimStrategy": "Trim",
"enabled": true
}
}
Response Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| success | Boolean | Whether the request succeeds. | true |
| requestId | String | Request ID. | Di2q5ZQG-GMMKuIRnMGMw7BQdFLk8USJ |
| data | Integer | Subtask execution ID created by this run. | 285324 |
Successful Invocation Example
{
"success": true,
"requestId": "Di2q5ZQG-GMMKuIRnMGMw7BQdFLk8USJ",
"data": 285324
}