Repository navigation
[Backport branch-0.3] Allow providing base path for UC API Client - #1215
Merged
Merged
Conversation
**PR Checklist** - Certain vendors may register UC API under a certain path (e.g. Microsoft Fabric API registers it under `https://onelake.table.fabric.microsoft.com/delta/<Workspace name or workspace ID>/<Item name or item ID>/api/2.1/unity-catalog/`) - New test suite added - This is a behavioural change, since if someone provided a URL earlier with a specific path, then the path would be just ignored (e.g., the fabric API I provided above would be translated to `https://onelake.table.fabric.microsoft.com/api/2.1/unity-catalog/`). But probably no users provide a URL with a path, since the UC API could not be hit prior to this fix. - Base URL prior this change was `api/2.1/unity-catalog/`, while now it is `basePathFromProvidedUrl` + `api/2.1/unity-catalog/` **Description of changes** - In the API Client factory, set the base path of the provided URL where the UC API is registered. This code path is hit when we initialize `UCSingleCatalog`. - Behaviour prior this change caused failure on URIs with certain path: <img width="1852" height="194" alt="image" src="https://github.com/user-attachments/assets/ae2d67cb-2d92-4483-bd4a-07ee961200e6" /> --------- Signed-off-by: Uros Stankovic <[email protected]> (cherry picked from commit 37f5755) Signed-off-by: Uros Stankovic <[email protected]>
tdas
force-pushed
the
backport-1130-to-branch-0.3
branch
from
November 16, 2025 19:20
041e233 to
c034fd7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #1130 to
branch-0.3.PR Checklist
https://onelake.table.fabric.microsoft.com/delta/<Workspace name or workspace ID>/<Item name or item ID>/api/2.1/unity-catalog/)https://onelake.table.fabric.microsoft.com/api/2.1/unity-catalog/). But probably no users provide a URL with a path, since the UC API could not be hit prior to this fix.api/2.1/unity-catalog/, while now it isbasePathFromProvidedUrl+api/2.1/unity-catalog/Description of changes
UCSingleCatalog.