Column

Updated at:

Parameter

Type

Description

Example

object

The column.

BusinessMetadata

object

The business metadata.

CustomAttributes

object

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

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

array

The list of attribute values.

string

The attribute value.

Zhang San

Description

string

The business description of the column. This parameter is supported only by MaxCompute, HMS (EMR clusters), and DLF.

Business description of column 1

Comment

string

The comment.

Column 1

ForeignKey

boolean

Specifies whether the column is a foreign key. This parameter is supported only by MaxCompute.

false

Id

string

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

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

Note

For MaxCompute and DLF, use an empty string as a placeholder for the instance ID. For MaxCompute, the database name is the MaxCompute project name. If the three-level model is enabled for the project, the schema name is required. Otherwise, use an empty string as a placeholder for the schema name.

Note

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

The following are the ID formats for several common types:

maxcompute-column:::project_name:[schema_name]:table_name:column_name

dlf-column::catalog_id:database_name::table_name:column_name

hms-column:instance_id::database_name::table_name:column_name

holo-column:instance_id::database_name:schema_name:table_name:column_name

mysql-column:(instance_id|encoded_jdbc_url)::database_name::table_name:column_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 MaxCompute, this is required only if the three-level model is enabled for the project. Otherwise, use an empty string as a placeholder.
table_name: The table name.
column_name: The column name.







maxcompute-column:::project_name:[schema_name]:table_name:column_name

Name

string

The name.

column_name

PartitionKey

boolean

Specifies whether the column is a partition key.

false

Position

integer

The position.

1

PrimaryKey

boolean

Specifies whether the column is a primary key. This parameter is supported only by MaxCompute.

false

StatisticsInfos

object

The statistical metrics of the column. The key is the metric name and the value is the statistical value in string format. Current metrics include the number of production runs in the last 30 days (prodRunCount30d) and the number of downstream tasks that depend on the column (downstreamTaskCount30d). Metrics without statistical values are not returned.

{"prodRunCount30d": "96"}

string

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

96

TableId

string

The ID of the table. For more information, see the Table object.

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

TechnicalMetadata

object

The technical metadata.

Parameters

object

The technical parameters of the column. The key is the parameter name and the value is a string. Objects or arrays are represented as JSON strings.

{"type":"keyword"}

string

The value of the technical parameter, returned as a string. For example, if the key is type, the value is keyword. Values of object or array types are represented as JSON strings.

keyword

Type

string

The type.

bigint