Queries the details of the SQL statements that are involved in an SQL review ticket.
Operation description
For more information about the SQL review feature, see SQL review.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
OrderId | long | Yes | The ID of the SQL review ticket. You can call the CreateSQLReviewOrder operation to query the ticket ID. | 123321 |
OrderActionDetail | object | No | The parameters that are used to filter SQL statements involved in the ticket. | |
FileId | long | No | The ID of the file that contains the SQL statements to be reviewed. | 123345 |
SQLReviewResult | string | No | The optimization suggestion for the SQL statement. Valid values:
| MUST_IMPROVE |
CheckStatusResult | string | No | The review status of the SQL statement. Valid values:
| check_not_pass |
Page | object | No | The pagination information. | |
PageNumber | integer | No | The page number. | 1 |
PageSize | integer | No | The number of entries per page. | 20 |
Tid | long | No | The tenant ID. You can call the GetUserActiveTenant or ListUserTenants operation to query the tenant ID. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"TotalCount": 10,
"OriginSQLList": [
{
"SQLId": 1111,
"FileId": 123321,
"FileName": "test.sql",
"SQLContent": "select id from table_name",
"CheckStatus": "check_pass",
"StatusDesc": "passed the test",
"CheckedTime": "2021-06-09 21:07:00",
"SqlHash": "95adb6e77a0884d9e50232cb8c5c969d",
"ReviewSummary": "{\"POTENTIAL_ISSUE\":1,\"SUGGEST_IMPROVE\":1}",
"SQLReviewQueryKey": "a57e54ec5433475ea3082d882fdb89c5",
"SQLName": "getByPk"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|