unitycatalog / unitycatalog/unitycatalog

Make an interface to provide functionality of getSchemaId

Open
#1,165 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.