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 to which the package belongs.
Log on to the MaxCompute console. In the top navigation bar, select a region. On the Project management tab, obtain the name of the MaxCompute project. |
package_name | Yes | The name of the package whose details you want to view.
You can execute the |
Examples
View the resources and permissions that are included in the datashare package in the test_project_a project. Sample statement:
-- View the package details.
describe package test_project_a.datashare;
The return result contains the following information:- CreateTime: the time when the package is created.
- PackageName: the name of the package.
- SourceProject: the name of the MaxCompute project to which the package belongs.
- ObjectType: the type of an object in the package.
- ObjectName: the name of an object in the package.
- ObjectPrivileges: the permissions on an object in the package.
- ProjectName: the project that is authorized to install the package.
- UserLabel: the user access level label.
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 the resources that are required by package users to the package that is created.
- REMOVE FROM PACKAGE: Removes resources from a package.
- ALLOW PROJECT: A package creator in a project authorizes other projects to use the package that is created.
- DISALLOW PROJECT: A package creator revokes access permissions on a package from a project.
- DROP PACKAGE: Deletes a package that is created.
- INSTALL PACKAGE: Installs a package in a MaxCompute project.
- UNINSTALL PACKAGE: Uninstalls a package that is installed from a MaxCompute project.
- GRANT: Authorizes a user or role to access a package
- REVOKE: Revokes access permissions on a package from a user or role.
- SHOW commands: Views the packages that are created or installed in a MaxCompute project.