Appendix: Metadata version and attributes

Updated at:

This topic describes the conditions that create new metadata versions and lists the information collected for different types of metadata objects from various data sources.

Metadata versions

General rules

  • Modifying the following information does not create a new metadata version:

    • Partition definition changes: Changes to the number of partitions, or to the partition type or expression of a partition field.

    • Attribute definition changes: Changes to user-defined attributes.

    • Collection policy configuration: If a collection policy is set to retain deleted metadata, deleting fields does not create a new metadata version.

  • Modifying the following information creates a new metadata version:

    • Table information changes: Changes to the table description or metadata type.

    • Table structure changes: Changes to partition fields, converting a non-partitioned table to a partitioned table, or changing the DDL of a view.

    • Field structure changes: Adding, updating, or deleting fields, or changing the field order, data type, or key type.

    • Field detail changes: Changes to a field's default value, nullability, or description.

Changes to certain data-source-specific attributes also create new versions, as shown in the following table.

Data source type

Description

Hologres

Changes to the partition table type (such as switching between a parent partition table and a partition subtable), the parent partition table name, or the conditions of a partition subtable.

StarRocks

Changes to the table type, materialized view refresh type, invalidation status, sort keys, bucketing method, or bucket keys. Note that changing the number of buckets does not create a new version.

OceanBase, Greenplum

Changes to the partition field type.

Amazon Redshift

Changes to the table storage type, distribution key, sort method, or sort keys.

SelectDB, Doris

Changes to the table storage type, bucketing method, bucket keys, sort keys, or distribution key.

DM

Changes to the table storage type.

DolphinDB

Changes to sort keys.

openGauss

Changes to the table storage type or partition field type.

Metadata attributes

The following information is available for all data sources:

  • Table technical attributes: Includes the description, row count, storage type, and storage size.

  • Field list: For each version, a list of fields including their name (a key icon identifies the primary key), data type, description, nullability, and default value.

  • Partition information: Includes partition fields and partition details. Partition fields include the field name, data type, and description. Partition details include the partition name, record count, storage size, and creation time.

Note
  • For views from a relational database, technical attributes only include the description.

  • For Amazon Redshift, a super administrator account can access all row data (all metadata) from system tables by default. A regular user can only view their own data. If you do not want to configure a super administrator account for the data source but still want to collect all data, you can grant usage permission on the schema to an account by running this statement: GRANT USAGE ON SCHEMA ${schema, e.g., pg_catalog} TO ${username}.

  • For DM and Oracle data sources, the configured user must have SELECT permission on the relevant tables to collect their metadata. To grant this permission, run the following statement: grant SOI to your_username;.

  • For DolphinDB, metadata is collected by calling functions. The scope of the collected data depends on the role of the user account configured for the data source:

    • Cluster administrator: Can collect tables from all databases.

    • DB_OWNER, or an account with DB_MANAGE or DB_READ permissions on a specified database: Can collect all tables from the corresponding database.

    • Other accounts: Can collect tables for which they have TABLE_READ permission.

  • For SelectDB and Doris data sources, metadata for asynchronous materialized views can be collected, and they are identified as tables. Metadata for synchronous materialized views cannot currently be collected.

The following table details the specific metadata attributes collected from each data source.

Data source type

Table technical attributes

Field list

Partition information

MySQL, Amazon RDS for MySQL, TDSQL for MySQL

Storage type is not collected.

A view field's default value reflects the default value of the source table field.

  • Partition fields: The partition field type is not collected.

  • Partition details: Partition details are not collected.

Microsoft SQL Server, Amazon RDS for SQL Server

Storage type is not collected.

N/A

  • Partition fields: The partition field type is not collected.

  • Partition details: Partition details are not collected.

AnalyticDB for MySQL 3.0

N/A

A view field's default value reflects the default value of the source table field.

  • Partition fields: The partition field type is not collected.

  • Partition details: Partition details are not collected.

OceanBase

Collects "is partitioned" status, creation time, last update time (MySQL tenants only), and last DDL update time (Oracle tenants only). The information displayed varies by table type:

  • View: "Is partitioned" status, row count, and storage size are not collected.

  • External table: Row count and storage size are not collected.

For standard fields, displays unique key, foreign key, and check constraint information. A unique key is identified by UNI (Oracle tenants only), a foreign key by FOR, and a check constraint by CHK (Oracle tenants only).

  • Partition fields: Displays the partition type of the field, including range partition (range), list partition (list), and hash partition (hash).

  • Partition details: Partition details are not collected.

Note

Partition information is displayed only for OceanBase in Oracle tenant mode.

PolarDB-X

N/A

A view field's default value reflects the default value of the source table field.

  • Partition fields: The partition field type is not collected.

  • Partition details: Partition details are not collected.

IBM DB2, Amazon RDS for DB2

N/A

Default value is not collected.

  • Partition fields: The partition field type is not collected.

  • Partition details: Partition details are not collected.

ClickHouse

Collects "is partitioned" status, table engine, and last DDL update time. The information displayed varies by table type:

  • View: "Is partitioned" status, row count, storage type, and storage size are not collected.

  • Materialized view: "Is partitioned" status, row count, and storage type are not collected.

  • External table: Storage size is not collected.

Displays sampling key and sort key information. A sampling key is identified by SMP, and a sort key is identified by SOR.

  • Partition fields: The partition field type is not collected.

  • Partition details: Partition details are not collected.

Hive (MySQL metastore)

Collects "is partitioned" status, "is lakehouse table" status, lakehouse table format, table storage mode, storage format, creation time, and last DDL update time. The information displayed varies by table type:

  • View: Storage type, storage format, storage size, "is partitioned" status, and row count are not collected.

  • External table: "Is partitioned" status and row count are not collected.

Nullability and default value information is not collected.

  • Partition fields: Partition field information is collected.

  • Partition details: N/A

    Note

    For Iceberg tables, partition information is not collected.

Hologres

Collects "is partitioned" status, parent partition table name (for partition subtables only), partition condition (for partition subtables only), number of partition subtables (for parent partition tables only), storage format, creation time, last update time, last DDL update time, and lifecycle information. The information displayed varies by table type:

  • View: Lifecycle, storage size, row count, "is partitioned" status, last DDL update time, storage format, data update time, and creation time are not collected.

  • Materialized view: Lifecycle, storage size, row count, "is partitioned" status, last DDL update time, storage format, and data update time are not collected.

  • External table: Lifecycle, storage size, row count, "is partitioned" status, data update time, and creation time are not collected.

  • Partitioned internal table: Last data update time is not collected.

N/A

  • Partition fields: Collects the partition type of the field, which includes list partition (list).

  • Partition details: Collects partition value, partition subtable, and partition condition information.

StarRocks

Collects table type (internal tables only), materialized view type (materialized views only), invalidation status (materialized views only), "is partitioned" status, "is lakehouse table" status, lakehouse table format, storage format, creation time, and last update time. The information displayed varies by table type:

  • View: Storage type, storage format, storage size, and row count are not collected.

  • Materialized view: Storage type, storage format, and storage size are not collected.

  • External table: "Is partitioned" status and row count are not collected.

Displays bucket key and sort key information.

  • Partition fields: Collects the partition type of the field, including range partition (range), list partition (list), and hash partition (hash).

  • Partition details: Collects partition expression information.

Greenplum

Collects "is partitioned" status and Location (external tables only). The information displayed varies by table type:

  • View: "Is partitioned" status, row count, storage type, and storage size are not collected.

  • Materialized view: "Is partitioned" status and storage type are not collected.

  • External table: "Is partitioned" status, row count, and storage size are not collected.

For standard fields, displays unique key, foreign key, and check constraint information. A unique key is identified by UNI, a foreign key by FOR, and a check constraint by CHK.

  • Partition fields: Collects the partition type, including value partition and range partition.

  • Partition details: Partition details are not collected.

Amazon Redshift

Collects "is partitioned" status and Location (external tables only). Row count and storage size are not collected. The information displayed varies by table type:

  • Internal table: "Is partitioned" status and storage format information are not collected.

  • View/Materialized view: "Is partitioned" status, storage type, and storage format information are not collected.

Displays distribution key and sort key information. If all returned values for the sort key are positive, it indicates a standard sort. If the values include both positive and negative numbers, it indicates an interleaved sort.

Partition information is displayed for external tables only.

  • Partition fields: The partition field type is not collected.

  • Partition details: Partition details are not collected.

SelectDB, Doris

Collects "is partitioned" status, "is lakehouse table" status (displayed only when the storage format is Hudi or Iceberg and the value is Yes), lakehouse table format (displayed when "is lakehouse table" is Yes), storage format, table type, creation time, and last data update time.

The information displayed varies by table type:

  • External table: "Is partitioned" status, row count, table type, storage size, creation time, and last data update time are not collected.

  • View: "Is partitioned" status, row count, storage type, storage format, table type, storage size, and last data update time are not collected.

  • For standard fields, displays unique key, duplicate key, and aggregate key information. A unique key is identified by UNI, a duplicate key by DUP, and an aggregate key by AGG.

  • Displays bucket key and sort key information.

  • Partition fields: Collects the partition type of the field, including list partition, range partition, and expression partition.

  • Partition details: Collects last update time information.

DM

Collects "is partitioned" status, storage type, storage format, Location (external tables only), creation time, and last DDL update time.

The information displayed varies by table type:

  • External table: "Is partitioned" status, storage format, creation time, and last DDL update time are not collected.

  • View: "Is partitioned" status, storage type, storage format, and last DDL update time are not collected.

  • Materialized view: "Is partitioned" status and storage format are not collected.

For standard fields, displays unique key, reference key, and check constraint information. A unique key is identified by UNI, a reference key by REF, and a check constraint by CHK.

  • Partition fields: The partition field type is not collected.

  • Partition details: Partition details are not collected.

Elasticsearch

Collects document count and storage size for table objects (indexes) only.

Collects field name and data type information for table objects (indexes) only.

  • Partition fields: The partition field type is not collected.

  • Partition details: Partition details are not collected.

DolphinDB

Collects "is partitioned" status, storage engine, storage format, and creator. Storage type is not collected.

  • Nullability and default value are not collected.

  • Displays sort key information.

  • Partition fields: Collects the partition type of the field, including value partition (value), range partition (range), list partition (list), and hash partition (hash).

  • Partition details: Creation time is not collected.

openGauss

Collects "is partitioned" status, storage format, Location (external tables only), and view DDL (views and materialized views only).

The information displayed varies by table type:

  • External table: "Is partitioned" status, row count, and storage size are not collected.

  • View: "Is partitioned" status, row count, storage type, storage format, and storage size are not collected.

  • Materialized view: "Is partitioned" status, storage type, and storage format are not collected.

For standard fields, displays primary key, check constraint, unique key constraint, and trigger constraint information. A check constraint is identified by CHK, a unique key by UNI.

  • Partition fields: Collects nullability and default value information. The partition types for fields include range partition (range), interval partition (interval), list partition (list), hash partition (hash), value partition (value).

  • Partition details: Record count, storage size, and creation time are not collected.