unitycatalog / unitycatalog/unitycatalog
Make an interface to provide functionality of getSchemaId
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 672
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 30
Description
Describe the bug
In the code base there is a repeated pattern of this:
UUID schemaId =
repositories.getSchemaRepository().getSchemaId(session, catalogName, schemaName);
This can be deduped by having an interface like SchemaUtils that every repo extends to get a simple function getSchemaId(...).
To Reproduce
Expected behavior
System [please complete the following information]:
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the repository for repeated getSchemaId(session, catalogName, schemaName) calls and inspect the repository implementations that provide them. Trace how repositories are structured before deciding where the shared interface belongs. Done means the repeated access pattern is consolidated behind the interface and existing behavior remains covered by the relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100