Query Data Comparison Subtask Details
Query the execution details of a specified data comparison subtask.
Request URL: /openapi/v1/comparedata/queryTaskExecInfo
Request Method: GET
Before You Call
You can obtain execId in either of the following ways:
- Call Start Data Comparison Task and use
datain the successful response. - Call Query Data Comparison Main Task Details and use
data.lastExecIdin the response.
Request Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| execId | String | Yes | Data comparison subtask ID. In most cases, use lastExecId from the main task response or data from the start task response. | 315337 |
How to Use the Returned Value
data.taskId is the main task ID that this subtask belongs to. If you need to view the main task configuration again, pass this value to Query Data Comparison Main Task Details.
Request Example
{
"execId": 315337
}
Response Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| success | Boolean | Whether the request is successful. | true |
| requestId | String | Request ID, which can be used for troubleshooting and tracing. | Hg4d2OLN-DJJKnOZnEELv6ZUdFHc8LBG |
| data | Object | Subtask execution details object. | See the field descriptions below |
Subtask Fields
| Parameter | Type | Description | Example |
|---|---|---|---|
| id | String | Data comparison subtask ID. | 315337 |
| taskId | String | Main task ID that this subtask belongs to. | cd-tepmjmnj6o |
| status | String | Task status. success means completed, failed means failed, starting means starting, and running means running. | starting |
| onlySourceRows | Integer | Number of rows that exist only in the source. | 0 |
| onlyTargetRows | Integer | Number of rows that exist only in the target. | 0 |
| errorMessage | String | Error message. It contains details when the subtask fails or encounters an exception. | "" |
| differenceRows | Integer | Number of rows that are different between source and target. | 0 |
| skipTableCount | Integer | Number of tables skipped during comparison. | 0 |
Successful Invocation Example
{
"success": true,
"requestId": "Hg4d2OLN-DJJKnOZnEELv6ZUdFHc8LBG",
"data": {
"id": 315337,
"createTime": "2026-05-08 08:35:40Z",
"updateTime": "2026-05-08 08:35:40Z",
"taskId": "cd-tepmjmnj6o",
"status": "starting",
"accountId": "1708516390626159",
"errorMessage": "",
"execType": "manual",
"tableCount": 0,
"sourceTotalRows": 0,
"targetTotalRows": 0,
"sourceCompletedRows": 0,
"targetCompletedRows": 0,
"onlySourceRows": 0,
"onlyTargetRows": 0,
"differenceRows": 0,
"sameRows": 0,
"skipTableCount": 0
}
}