You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "jerryshao (via GitHub)" <gi...@apache.org> on 2026/08/28 08:48:38 UTC
[PR] [Cherry-pick to branch-1.3] [#11844] feat(tag): Support tags for views and functions [gravitino]
jerryshao opened a new pull request, #12714:
URL: https://github.com/apache/gravitino/pull/12714
### What changes were proposed in this pull request?
This PR backports view/function tag support from `main` to `branch-1.3`:
- #11897 [#11844] feat(tag): Support tags for views and functions — server/core: allow VIEW
and FUNCTION as taggable metadata object types, OpenAPI updates, cascade cleanup on drop.
- #11903 [#11902] feat(client-java): Support tags for views and functions — adds
`supportsTags()` to `View`/`Function`, `GenericView`/`GenericFunction` client wrappers.
- #12182 [#12181] feat(client-python): Support tags for views and functions — adds
`supports_tags()` to the Python client's `View`/`Function`.
The Python client had no View API at all on `branch-1.3` (it was added on `main` after the
branch was cut), so 4 prerequisite commits are included to bring it to parity before applying
the tag-support patch:
- #12040 [#12039] feat(client-python): Add view API definitions
- #12090 [#12089] improvement(client-python): Implement client-side view models
- #12117 [#12116] improvement(client-python): Add view create/drop operations
- #12159 [#12158] improvement(client-python): Add view query/alter operations
One trivial doc conflict in `docs/manage-tags-in-gravitino.md` was resolved manually: the intro
text that #11903 added (listing taggable object types) is redundant with `branch-1.3`'s existing,
already-restructured `docs/tags.md`, which already lists `VIEW`/`FUNCTION` as taggable.
### Why are the changes needed?
Feature parity: `branch-1.3` should support tagging views and functions consistently across
server, Java client, and Python client, matching `main`.
Fix: #11844
Related: #11902, #12181
### Does this PR introduce _any_ user-facing change?
Yes, same as the source PRs:
- REST/OpenAPI: `VIEW` and `FUNCTION` are now valid metadata object types for tag association.
- Java client: `view.supportsTags()` / `function.supportsTags()` are available.
- Python client: `view.supports_tags()` / `function.supports_tags()`; the Python client also
gains full View CRUD (list/load/create/alter/drop) it previously lacked on `branch-1.3`.
### How was this patch tested?
- `./gradlew :api:compileJava :core:compileJava :clients:client-java:compileJava :clients:client-java:compileTestJava -q` — passed.
- `./gradlew :clients:client-java:test --tests "*TestSupportTags*" --tests "*TestFunctionCatalog*" --tests "*TagIT*" -PskipITs -q` — passed.
- `./gradlew :core:test --tests "org.apache.gravitino.tag.TestTagManager" -PskipITs -q` — passed in isolation.
- Python client: `python -m pytest tests/unittests -k "view or function or tag" -q` — 190 passed.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Cherry-pick to branch-1.3] [#11844] feat(tag): Support tags for views and functions [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao commented on PR #12714:
URL: https://github.com/apache/gravitino/pull/12714#issuecomment-5450447253
NOTE. I will use rebase and merge.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Cherry-pick to branch-1.3] [#11844] feat(tag): Support tags for views and functions [gravitino]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12714:
URL: https://github.com/apache/gravitino/pull/12714#issuecomment-5451588846
<!-- coverage-report -->
### Code Coverage Report
|Overall Project|67.77% **`+0.31%`**|:green_circle:|
|:-|:-|:-:|
|Files changed|88.5%|:green_circle:|
<br>
|Module|Coverage||
|:-|:-|:-:|
|aliyun|1.72%|:red_circle:|
|api|47.7% **`+0.08%`**|:green_circle:|
|authorization-common|85.96%|:green_circle:|
|aws|42.04%|:green_circle:|
|azure|2.47%|:red_circle:|
|catalog-common|10.4%|:red_circle:|
|catalog-fileset|80.23%|:green_circle:|
|catalog-glue|68.95%|:green_circle:|
|catalog-hive|79.42%|:green_circle:|
|catalog-jdbc-clickhouse|81.78%|:green_circle:|
|catalog-jdbc-common|45.48%|:green_circle:|
|catalog-jdbc-doris|82.36%|:green_circle:|
|catalog-jdbc-hologres|54.03%|:green_circle:|
|catalog-jdbc-mysql|79.33%|:green_circle:|
|catalog-jdbc-oceanbase|78.6%|:green_circle:|
|catalog-jdbc-postgresql|83.39%|:green_circle:|
|catalog-jdbc-starrocks|79.16%|:green_circle:|
|catalog-kafka|77.01%|:green_circle:|
|catalog-lakehouse-generic|59.18%|:green_circle:|
|catalog-lakehouse-hudi|79.1%|:green_circle:|
|catalog-lakehouse-iceberg|85.94%|:green_circle:|
|catalog-lakehouse-paimon|82.14%|:green_circle:|
|catalog-model|77.72%|:green_circle:|
|cli|44.51%|:green_circle:|
|client-java|78.16% **`+1.42%`**|:green_circle:|
|common|50.75%|:green_circle:|
|core|82.92% **`+0.06%`**|:green_circle:|
|filesystem-hadoop3|77.3%|:green_circle:|
|flink|0.0%|:red_circle:|
|flink-common|47.12%|:green_circle:|
|flink-runtime|0.0%|:red_circle:|
|gcp|14.12%|:red_circle:|
|hadoop-common|10.88%|:red_circle:|
|hive-metastore-common|53.77%|:green_circle:|
|iceberg-aliyun-bundle|0.0%|:red_circle:|
|iceberg-common|58.15%|:green_circle:|
|iceberg-rest-server|73.9%|:green_circle:|
|idp-basic|86.02%|:green_circle:|
|integration-test-common|0.0%|:red_circle:|
|jobs|66.17%|:green_circle:|
|lance-common|24.42%|:red_circle:|
|lance-rest-server|60.13%|:green_circle:|
|lineage|53.02%|:green_circle:|
|optimizer|82.95%|:green_circle:|
|optimizer-api|21.95%|:red_circle:|
|server|86.46%|:green_circle:|
|server-common|76.03% **`+3.45%`**|:green_circle:|
|spark|28.57%|:red_circle:|
|spark-common|41.66%|:green_circle:|
|trino-connector|40.97%|:green_circle:|
<details>
<summary>Files</summary>
|Module|File|Coverage||
|:-|:-|:-|:-:|
|api|[View.java](https://github.com/jerryshao/gravitino/blob/005101bca525a433839e6566ce5e4e404026fe6e/api/src/main/java/org/apache/gravitino/rel/View.java)|78.57%|:green_circle:|
||[Function.java](https://github.com/jerryshao/gravitino/blob/005101bca525a433839e6566ce5e4e404026fe6e/api/src/main/java/org/apache/gravitino/function/Function.java)|0.0%|:red_circle:|
|client-java|[FunctionCatalogOperations.java](https://github.com/jerryshao/gravitino/blob/005101bca525a433839e6566ce5e4e404026fe6e/clients/client-java/src/main/java/org/apache/gravitino/client/FunctionCatalogOperations.java)|99.0%|:green_circle:|
||[RelationalCatalog.java](https://github.com/jerryshao/gravitino/blob/005101bca525a433839e6566ce5e4e404026fe6e/clients/client-java/src/main/java/org/apache/gravitino/client/RelationalCatalog.java)|93.06%|:green_circle:|
||[GenericFunction.java](https://github.com/jerryshao/gravitino/blob/005101bca525a433839e6566ce5e4e404026fe6e/clients/client-java/src/main/java/org/apache/gravitino/client/GenericFunction.java)|67.86%|:green_circle:|
||[GenericView.java](https://github.com/jerryshao/gravitino/blob/005101bca525a433839e6566ce5e4e404026fe6e/clients/client-java/src/main/java/org/apache/gravitino/client/GenericView.java)|65.52%|:green_circle:|
|core|[TagMetadataObjectRelBaseSQLProvider.java](https://github.com/jerryshao/gravitino/blob/005101bca525a433839e6566ce5e4e404026fe6e/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/base/TagMetadataObjectRelBaseSQLProvider.java)|100.0%|:green_circle:|
||[TagMetadataObjectRelPostgreSQLProvider.java](https://github.com/jerryshao/gravitino/blob/005101bca525a433839e6566ce5e4e404026fe6e/core/src/main/java/org/apache/gravitino/storage/relational/mapper/provider/postgresql/TagMetadataObjectRelPostgreSQLProvider.java)|100.0%|:green_circle:|
||[FunctionMetaService.java](https://github.com/jerryshao/gravitino/blob/005101bca525a433839e6566ce5e4e404026fe6e/core/src/main/java/org/apache/gravitino/storage/relational/service/FunctionMetaService.java)|100.0%|:green_circle:|
||[TagManager.java](https://github.com/jerryshao/gravitino/blob/005101bca525a433839e6566ce5e4e404026fe6e/core/src/main/java/org/apache/gravitino/tag/TagManager.java)|83.68%|:green_circle:|
|server-common|[JcasbinAuthorizer.java](https://github.com/jerryshao/gravitino/blob/005101bca525a433839e6566ce5e4e404026fe6e/server-common/src/main/java/org/apache/gravitino/server/authorization/jcasbin/JcasbinAuthorizer.java)|87.68%|:green_circle:|
</details>
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Cherry-pick to branch-1.3] [#11844] feat(tag): Support tags for views and functions [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao merged PR #12714:
URL: https://github.com/apache/gravitino/pull/12714
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org