Appendix: Metadata version and attributes
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.
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. |
|
Microsoft SQL Server, Amazon RDS for SQL Server | Storage type is not collected. | N/A |
|
AnalyticDB for MySQL 3.0 | N/A | A view field's default value reflects the default value of the source table field. |
|
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:
| 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). |
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. |
|
IBM DB2, Amazon RDS for DB2 | N/A | Default value is not collected. |
|
ClickHouse | Collects "is partitioned" status, table engine, and last DDL update time. The information displayed varies by table type:
| Displays sampling key and sort key information. A sampling key is identified by SMP, and a sort key is identified by SOR. |
|
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:
| Nullability and default value 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:
| N/A |
|
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:
| Displays bucket key and sort key information. |
|
Greenplum | Collects "is partitioned" status and Location (external tables only). The information displayed varies by table type:
| 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. |
|
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:
| 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.
|
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:
|
|
|
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:
| 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. |
|
Elasticsearch | Collects document count and storage size for table objects (indexes) only. | Collects field name and data type information for table objects (indexes) only. |
|
DolphinDB | Collects "is partitioned" status, storage engine, storage format, and creator. Storage type 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:
| 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. |
|