All Products
Search
Document Center

MaxCompute:DESC RESOURCE

Last Updated:Mar 26, 2026

Returns the metadata of a resource in the current project, such as its owner, type, size, creation time, and MD5 checksum.

Syntax

desc resource <resource_name>;

Parameters

ParameterRequiredDescription
resource_nameYesThe name of an existing resource.

Output

ColumnDescription
NameThe name of the resource.
OwnerThe account that owns the resource.
TypeThe resource type: JAR, FILE, ARCHIVE, PY, or TABLE.
CommentThe comment associated with the resource.
CreatedTimeThe time when the resource was created.
LastModifiedTimeThe time when the resource was last updated.
LastUpdatorThe account that performed the last update. This field is blank if the resource has not been updated since it was first uploaded.
SizeThe size of the resource file, in bytes.
Md5sumThe MD5 checksum of the resource file.

Usage notes

  • Resource names are not case-sensitive. resource_A and resource_a refer to the same resource.

Examples

The following example shows how to view the metadata of a JAR resource.

-- View information of resource topn_new.jar.
desc resource topn_new.jar;

Output:

Name                                    topn_new.jar
Owner                                   ALIYUN$****@test.aliyunid.com
Type                                    JAR
Comment                                 cloudopenapi
CreatedTime                             2020-12-29 13:55:11
LastModifiedTime                        2020-12-29 13:55:11
LastUpdator
Size                                    11438795
Md5sum                                  8bcf6aabf****56c0
LastUpdator is blank because this resource has not been updated since it was first uploaded.

What's next