yuqi1129 opened a new issue, #14913:
URL: https://github.com/apache/gravitino/issues/14913
### Describe the proposal
Gravitino can describe where data lives (`catalog.schema.table`) and which
business area it belongs to (Domain, #13864). It cannot describe what a
business word such as "Active Customer" or "Churn" means. So agents guess which
table or metric a word refers to, and teams define the same word in different
ways.
This epic adds a **Business Glossary** (Step 1): a metalake-level list of
terms.
- **Terms.** A term has a name, a definition, synonyms, an owner, links,
properties and an optional source reference. Names and synonyms are unique in a
metalake, compared without case.
- **Relations.** A term can have several broader terms and any number of
related terms. The server rejects cycles, chains deeper than the limit, and
related terms that are also ancestors.
- **Status.** `DRAFT`, `APPROVED` (default) or `DEPRECATED`. Only `APPROVED`
terms are given to agents.
- **Domains and tags.** A term belongs to zero or more domains, and can
carry ordinary tags.
- **Bindings.** A term links to the objects that implement it (catalogs,
schemas, tables, views, columns, filesets, topics, models) and to the metrics
that use it.
- **Privileges.** `VIEW_DEFINITION`, `CREATE_DEFINITION` and
`MANAGE_DEFINITIONS`, granted on the metalake. An owner with
`CREATE_DEFINITION` edits their own terms; `MANAGE_DEFINITIONS` edits any term.
- **APIs.** REST endpoints under `/api/metalakes/{metalake}/terms`, Java and
Python clients, and MCP tools that map the words of a question to terms and
their data.
Step 2 (review, history and grants on domains) will be a separate epic.
Design doc: #14238 (PR #14239).
### Task list
- [ ] #14238
- [ ] Add Glossary API
- [ ] Add glossary term entity and storage in core
- [ ] Add glossary term relation storage in core
- [ ] Add Glossary manager in core
- [ ] Add term relations to the Glossary manager
- [ ] Add Glossary authorization
- [ ] Add domain membership for glossary terms
- [ ] Add Glossary REST APIs and OpenAPI specification
- [ ] Support tags on glossary terms
- [ ] Add Glossary events and audit
- [ ] Add glossary term bindings in core
- [ ] Add term binding REST APIs and reads
- [ ] Add glossary term lookup filters
- [ ] Add Glossary support to the Java client
- [ ] Add Glossary support to the Python client
- [ ] Add Glossary MCP tools
- [ ] Add Glossary CUJ integration tests
- [ ] Add a glossary hierarchy performance test
- [ ] Add Glossary user documentation
--
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]