Views the details of a package that is created or installed in a MaxCompute project.
Syntax
describe package <project_name>.<package_name>;Parameters
| Parameter | Required | Description |
| project_name | Yes | The name of the MaxCompute project that owns the package. To find the project name, log on to the MaxCompute console, select a region from the top navigation bar, and check the Project management tab. |
| package_name | Yes | The name of the package to inspect. To list available packages, run show packages; on the MaxCompute client. |
Example
View the objects and permissions in the datashare package in test_project_a:
-- View the package details.
describe package test_project_a.datashare;The output includes the following fields:
| Field | Description |
CreateTime | The time when the package was created. |
PackageName | The name of the package. |
SourceProject | The name of the MaxCompute project that owns the package. |
ObjectType | The type of an object in the package. |
ObjectName | The name of an object in the package. |
ObjectPrivileges | The permissions granted on an object in the package. |
ProjectName | The project authorized to install the package. |
UserLabel | The user access level label. |
Sample output:
CreateTime: 2021-12-28T18:10:39+0800
PackageName: datashare
SourceProject: test_project_a
Object List
+--------------+------------------------------------------+------------------+
| ObjectType | ObjectName | ObjectPrivileges |
+--------------+------------------------------------------+------------------+
| RESOURCE | udtf.jar | Read |
+--------------+------------------------------------------+------------------+
| TABLE | sale_detail | Describe,Select |
+--------------+------------------------------------------+------------------+
Allowed Project List
+-----------------+-----------+
| ProjectName | UserLabel |
+-----------------+-----------+
| test_project_b | 0 |
+-----------------+-----------+Related statements
- CREATE PACKAGE: Creates a package.
- ADD TO PACKAGE: Adds resources to a package for sharing.
- REMOVE FROM PACKAGE: Removes resources from a package.
- ALLOW PROJECT: Grants another project access to install a package.
- DISALLOW PROJECT: Revokes a project's access to a package.
- DROP PACKAGE: Deletes a package.
- INSTALL PACKAGE: Installs a package in a MaxCompute project.
- UNINSTALL PACKAGE: Uninstalls a package from a MaxCompute project.
- GRANT: Grants a user or role access to a package.
- REVOKE: Revokes a user's or role's access to a package.
- SHOW commands: Lists packages created or installed in a MaxCompute project.