Retrieves a partition expression.
This API has been deprecated. We recommend migrating to dataworks-public(2024-05-18) - GetDataQualityScan for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
The name of the engine or data source. You can obtain the name from the datasource config. |
autotest |
| TableName |
string |
Yes |
The name of the partitioned table. You can call GetMetaTablePartition to query the partitioned table name. |
dual |
| EnvType |
string |
Yes |
The type of the engine or data source. Valid values:
|
odps |
| MatchExpression |
string |
No |
The partition expression. |
dt=$[yyyymmdd] |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the workspace configuration page to obtain the workspace ID. |
123456 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
6d739ef6-098a-47**** |
| ErrorMessage |
string |
The error message. |
You have no permission. |
| ErrorCode |
string |
The error code. |
401 |
| Success |
boolean |
Indicates whether the call was successful. |
true |
| Data |
array<object> |
The returned information. |
|
|
object |
The details of the returned data. |
||
| RelativeNode |
string |
The information about the scheduling node associated with the partition expression, including:
|
[{"projectName":"xc_DP****","nodeId":7000026****}] |
| OnDutyAccountName |
string |
The Alibaba Cloud account name of the owner. |
test |
| Task |
integer |
The task node. |
0 |
| TableName |
string |
The name of the partitioned table. |
test_dqc_de**** |
| Followers |
string |
The subscribers. The Alibaba Cloud account IDs that receive alert notifications. |
1822931**** |
| OnDuty |
string |
The owner. The account ID of the user who configured the partition expression. |
1822931**** |
| MatchExpression |
string |
The partition expression. |
dt=$[yyyymmdd-1] |
| CreateTime |
integer |
The time when the partition expression was created. The value is a 13-digit number, for example, |
1593964800000 |
| ProjectName |
string |
The name of the engine or data source. |
autotest |
| HasRelativeNode |
boolean |
Indicates whether the partition expression is associated with scheduling. Valid values:
|
true |
| EnvType |
string |
The type of the engine or data source. |
odps |
| EntityLevel |
integer |
The level of the partition expression. Valid values:
|
0 |
| ModifyUser |
string |
The account ID of the user who updated the partition expression. |
1822931**** |
| Sql |
integer |
The SQL-level partition expression. |
0 |
| Id |
integer |
The ID of the partition expression. |
4003918 |
| ModifyTime |
integer |
The time when the partition expression was updated. The value is a 13-digit number, for example, |
1593964800000 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "6d739ef6-098a-47****",
"ErrorMessage": "You have no permission.",
"ErrorCode": "401",
"Success": true,
"Data": [
{
"RelativeNode": "[{\"projectName\":\"xc_DP****\",\"nodeId\":7000026****}]",
"OnDutyAccountName": "test",
"Task": 0,
"TableName": "test_dqc_de****",
"Followers": "1822931****",
"OnDuty": "1822931****",
"MatchExpression": "dt=$[yyyymmdd-1]",
"CreateTime": 1593964800000,
"ProjectName": "autotest",
"HasRelativeNode": true,
"EnvType": "odps",
"EntityLevel": 0,
"ModifyUser": "1822931****",
"Sql": 0,
"Id": 4003918,
"ModifyTime": 1593964800000
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.