kevinw66 opened a new pull request, #11897: URL: https://github.com/apache/gravitino/pull/11897
### What changes were proposed in this pull request? This PR adds tag support for VIEW and FUNCTION metadata objects. The changes include: - Allowing VIEW and FUNCTION in `TagManager` supported metadata object types. - Updating OpenAPI definitions for metadata object tag operations. - Cleaning up function tag relations when functions are dropped. - Cleaning up view/function tag relations during catalog and schema cascade deletion, including PostgreSQL-specific SQL providers. - Adding unit tests for tag association and cascade cleanup behavior. ### Why are the changes needed? Views and functions are first-class metadata objects in Gravitino, but they were excluded from tag association support. Users could not organize, classify, or discover views and functions through tags like other metadata objects. Fix: #11844 ### Does this PR introduce _any_ user-facing change? Yes. Users can now associate, list, get, and remove tags for VIEW and FUNCTION metadata objects through the existing metadata object tag REST APIs. ### How was this patch tested? Added unit tests covering: - TagManager support for VIEW and FUNCTION. - REST metadata object tag operations for VIEW and FUNCTION. - Tag relation cleanup when views/functions are dropped. - Catalog/schema cascade cleanup for view/function tag relations. - PostgreSQL tag relation cascade SQL provider coverage. Ran: ```bash ./gradlew :core:test --tests org.apache.gravitino.storage.relational.mapper.provider.postgresql.TestTagMetadataObjectRelPostgreSQLProvider --tests org.apache.gravitino.storage.relational.service.TestSchemaMetaService --tests org.apache.gravitino.storage.relational.service.TestCatalogMetaService ``` -- 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]
