Creates a partition filter expression.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | CreateQualityEntity | The operation that you want to perform. Set the value to CreateQualityEntity. |
ProjectName | String | Yes | autotest | The name of the compute engine instance or data source. |
TableName | String | Yes | dual | The name of the table. |
EnvType | String | Yes | ODPS | The type of the compute engine instance or data source. |
MatchExpression | String | Yes | dt=$[yyyymmdd] | The partition filter expression. |
EntityLevel | Integer | No | 0 | This parameter is deprecated.
|
ProjectId | Long | No | 123 | The DataWorks workspace ID. You can log on to the DataWorks console to obtain the ID. |
Response parameters
Parameter | Type | Example | Description |
HttpStatusCode | Integer | 200 | The HTTP status code. |
Data | Integer | 12345 | The partition filter expression ID. |
ErrorMessage | String | Your project is not relative with your account. | The error message. |
RequestId | String | 011e1231u3**** | The request ID. |
Success | Boolean | true | Indicates whether the request was successful. |
ErrorCode | String | 401 | The error code. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=CreateQualityEntity
&ProjectName=autotest
&TableName=dual
&EnvType=ODPS
&MatchExpression=dt=$[yyyymmdd]
&EntityLevel=0
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<CreateQualityEntityResponse>
<HttpStatusCode>200</HttpStatusCode>
<Data>12345</Data>
<ErrorMessage>Your project is not relative with your account.</ErrorMessage>
<RequestId>011e1231u3****</RequestId>
<Success>true</Success>
<ErrorCode>401</ErrorCode>
</CreateQualityEntityResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"HttpStatusCode" : 200,
"Data" : 12345,
"ErrorMessage" : "Your project is not relative with your account.",
"RequestId" : "011e1231u3****",
"Success" : true,
"ErrorCode" : 401
}
Error codes
For a list of error codes, see Service error codes.