Table

Updated at:

Parameter

Type

Description

Example

object

The data table object.

Id

string

The ID. For more information, see Metadata entity concepts.

The format is ${EntityType}:${Instance ID or URL-encoded JDBC URL}:${Data catalog identifier}:${Database name}:${Schema name}:${Table name}. Use an empty string as a placeholder for non-existent levels.

Note

For MaxCompute and DLF types, use an empty string as a placeholder for the instance ID. For the MaxCompute type, the database name is the MaxCompute project name. If the three-tier model is enabled for the project, the schema name must be provided. Otherwise, use an empty string as a placeholder for the schema name.

Note

For the StarRocks type, the data catalog identifier is the catalog name. For the DLF type, the data catalog identifier is the catalog ID. Other types do not support the catalog level, so you can use an empty string as a placeholder.

The ID formats for several common types are as follows:

maxcompute-table:::project_name:[schema_name]:table_name

dlf-table::catalog_id:database_name::table_name

hms-table:instance_id::database_name::table_name

holo-table:instance_id::database_name:schema_name:table_name

mysql-table:(instance_id|encoded_jdbc_url)::database_name::table_name

Note

Where:
instance_id: the instance ID, which is required when the data source is registered in instance mode.
encoded_jdbc_url: the URL-encoded JDBC connection string, which is required when the data source is registered in connection string mode.
catalog_id: the DLF catalog ID.
project_name: the MaxCompute project name.
database_name: the database name.
schema_name: the schema name. For the MaxCompute type, this is required only when the three-tier model is enabled for the project. Otherwise, use an empty string as a placeholder.
table_name: the table name.






dlf-table::catalog_id:database_name::table_name

Name

string

The name.

table_name

Comment

string

The comment.

Test table

TableType

string

The table type. The valid values depend on the metadata collector type.

TABLE

PartitionKeys

array

The list of partition keys. This parameter is empty for non-partitioned tables.

string

The partition key.

ds

ParentMetaEntityId

string

The ID of the parent metadata entity. For more information, see Metadata entity concepts.

  • For types that support schemas (maxcompute/holo/postgresql/sqlserver/hybriddb_for_postgresql/oracle, where the MaxCompute type requires the three-tier model to be enabled for the project), ParentMetaEntityId is the database schema to which the table belongs. The format is ${EntityType}:${Instance ID or URL-encoded JDBC URL}:${Data catalog identifier}:${Database name}:${Schema name}. Use an empty string as a placeholder for non-existent levels.

  • For other types, ParentMetaEntityId is the database to which the table belongs. The format is ${EntityType}:${Instance ID or URL-encoded JDBC URL}:${Data catalog identifier}:${Database name}. Use an empty string as a placeholder for non-existent levels.

Note

For MaxCompute and DLF types, use an empty string as a placeholder for the instance ID. For the MaxCompute type, the database name is the MaxCompute project name.

Note

For the StarRocks type, the data catalog identifier is the catalog name. For the DLF type, the data catalog identifier is the catalog ID. Other types do not support the catalog level, so you can use an empty string as a placeholder.

The ParentMetaEntityId formats for several common types are as follows:

maxcompute-project:::project_name

maxcompute-schema:::project_name:schema_name (only when the three-tier model is enabled for the project)

dlf-database::catalog_id:database_name

hms-database:instance_id::database_name

holo-schema:instance_id::database_name:schema_name

mysql-database:(instance_id|encoded_jdbc_url)::database_name

Note

Where:
instance_id: the instance ID, which is required when the data source is registered in instance mode.
encoded_jdbc_url: the URL-encoded JDBC connection string, which is required when the data source is registered in connection string mode.
catalog_id: the DLF catalog ID.
project_name: the MaxCompute project name.
database_name: the database name.
schema_name: the schema name.





dlf-database::catalog_id:database_name

CreateTime

integer

The creation time (millisecond timestamp).

1736852168000

ModifyTime

integer

The modification time (millisecond timestamp).

1736852168000

TechnicalMetadata

object

The technical metadata.

Owner

string

The owner.

test_user

Location

string

The storage location.

oss://test-bucket/test_tbl

Compressed

boolean

Specifies whether the table is compressed.

false

InputFormat

string

The input format.

org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat

OutputFormat

string

The output format.

org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat

SerializationLibrary

string

The SerDe class.

org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe

Parameters

object

The parameter information.

{"key1":"value"}

string

The parameter information.

value

BusinessMetadata

object

The business metadata related to DataWorks, including the instructions, tags, categories, upstream tasks that produce the table, and extension information.

Readme

string

The instructions.

## Instructions

CustomAttributes

object

The custom attribute values. The key is the custom attribute identifier, and the value is the list of attribute values.

{"owner_name":["Zhang San"]}

array

The list of attribute values.

string

The attribute value.

Zhang San

Tags

array

The list of tags.

object

The tag information.

Key

string

The tag key. This parameter cannot be empty.

tag_key

Value

string

The tag value. This parameter can be empty.

tag_value

Categories

array

The list of categories.

array

The hierarchy list of a single category (multi-level category).

object

The category information.

Id

string

The category ID.

CATEGORY.456

Name

string

The name.

Test category

ParentId

string

The parent category ID, which can be empty.

CATEGORY.123

UpstreamTasks

array

The list of upstream tasks that produce the table.

object

An upstream task that produces the table.

Id

integer

The task ID.

123456

Name

string

The task name.

test_task

Extension

object

The extension information. Currently, only the MaxCompute type is supported.

ProjectId

integer

The workspace ID.

234

EnvType

string

The environment type. Valid values:

  • Prod: production environment.

  • Dev: development environment.

Dev

ViewCount

integer

The view count.

0

ReadCount

integer

The read count.

0

FavorCount

integer

The favorite count.

0

StatisticsInfos

object

The statistical metrics of the table. The key is the metric name, and the value is the statistical value in string format. Currently, the metrics include the number of production runs in the last 30 days (prodRunCount30d), the number of ad hoc queries in the last 30 days (adhocQueryCount30d), the number of downstream tasks that depended on the table in the last 30 days (downstreamTaskCount30d), and the number of downstream tables that depended on it in the last 30 days (downstreamTableCount30d). Metrics without statistical values are not returned.

{"prodRunCount30d": "128"}

string

The value of the statistical metric, represented as a decimal integer string. For example, if the key is prodRunCount30d and the value is 128, it indicates 128 production runs in the last 30 days.

128