brucearctor opened a new pull request, #14977: URL: https://github.com/apache/gravitino/pull/14977
### What changes were proposed in this pull request? - Add catalog-level Table Topic properties (`table-topic.iceberg-catalog`, `table-topic.default-namespace`) in `KafkaCatalogPropertiesMetadata`. - Add first-class AutoMQ Table Topic property descriptors and validation (`automq.table.topic.enable`, `automq.table.topic.commit.interval.ms`, `automq.table.topic.namespace`, `automq.table.topic.schema.type`, `automq.table.topic.id.columns`, `automq.table.topic.partition.by`, `automq.table.topic.upsert.enable`, `automq.table.topic.cdc.field`, `automq.table.topic.errors.tolerance`) plus reserved read-only Iceberg linkage keys (`table-topic.enabled`, `table-topic.iceberg-catalog`, `table-topic.iceberg-namespace`, `table-topic.iceberg-table`, `table-topic.iceberg-ident`) in `KafkaTopicPropertiesMetadata`. - Enrich `createTopic`, `loadTopic`, and `alterTopic` responses in `KafkaCatalogOperations` with resolved Iceberg linkage metadata when `automq.table.topic.enable=true`. - Add `get_topic_iceberg_linkage` to `mcp-server` topic tools and document Table Topic properties in `docs/kafka-catalog.md`. ### Why are the changes needed? Kafka-compatible streaming engines such as AutoMQ materialize Table Topics directly into Apache Iceberg tables via an Iceberg REST catalog (such as Gravitino's Iceberg REST service). Previously, `catalog-kafka` lacked property validation for `automq.table.topic.*` configurations and did not surface the linked Iceberg table coordinates within the Metalake. Fixes: #14969 ### Does this PR introduce _any_ user-facing change? Yes: 1. Optional Kafka catalog properties `table-topic.iceberg-catalog` and `table-topic.default-namespace`. 2. Validated topic properties `automq.table.topic.*` and synthetic read-only topic linkage properties `table-topic.*` when `automq.table.topic.enable=true`. 3. New MCP server tool `get_topic_iceberg_linkage`. ### How was this patch tested? - Unit tests in `:catalogs:catalog-kafka:test` (`TestKafkaCatalogPropertiesMetadata`, `TestKafkaTopicPropertiesMetadata`, `TestKafkaCatalogOperations`, `TestKafkaCatalogCapability`). - Unit tests and Pylint verification in `:mcp-server:test` (`tests/unit/tools/test_topic.py`) and `:mcp-server:pylint`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
