GetAutoMvDetail
Queries the latest statistics information of an automatic materialized view in a specified project, including the definition, storage size, and row count.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetAutoMvDetail |
get |
*Project
|
None | None |
Request syntax
GET /api/v2/projects/{project}/autoMv/{name}/detail HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The name of the MaxCompute project. |
example_project |
| name |
string |
Yes |
The name of the automatic materialized view. |
mv_sales_daily |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| schema |
string |
No |
The schema to which the view belongs. Default value: default. This parameter is not used for filtering because the current detail query matches by project and name. |
default |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The unique identifier of the API request. Provide this identifier when troubleshooting call issues. |
0be3e0aa16667684362147582e038f |
| httpCode |
integer |
The HTTP status code of the request. |
200 |
| errorCode |
string |
The error code returned when the request fails. |
InvalidArgument |
| errorMsg |
string |
The error message returned when the request fails. |
The specified parameter is invalid. |
| data |
object |
The latest details of the specified automatic materialized view. |
|
| name |
string |
The name of the automatic materialized view. |
mv_sales_daily |
| owner |
string |
The owner of the automatic materialized view. |
example_owner |
| createTime |
integer |
The time when the view was created, represented as a UNIX timestamp in seconds. |
1764547200 |
| size |
number |
The amount of storage occupied by the view. For the unit, see unit. |
5 |
| date |
string |
The date of the detail statistics, in the yyyyMMdd format. |
20260101 |
| query |
string |
The query statement that defines the automatic materialized view. |
SELECT sales_date, SUM(amount) AS amount FROM sales GROUP BY sales_date |
| rowCount |
integer |
The number of rows recorded in the view. |
1024 |
| unit |
string |
The unit of the storage occupied by the view. |
GB |
Examples
Success response
JSON format
{
"requestId": "0be3e0aa16667684362147582e038f",
"httpCode": 200,
"errorCode": "InvalidArgument",
"errorMsg": "The specified parameter is invalid.",
"data": {
"name": "mv_sales_daily",
"owner": "example_owner",
"createTime": 1764547200,
"size": 5,
"date": "20260101",
"query": "SELECT sales_date, SUM(amount) AS amount FROM sales GROUP BY sales_date",
"rowCount": 1024,
"unit": "GB"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.