Skip to content

[Backport branch-0.3] Allow providing base path for UC API Client - #1215

Merged
tdas merged 1 commit into
branch-0.3from
backport-1130-to-branch-0.3
Nov 16, 2025
Merged

tdas merged 1 commit into
branch-0.3from
backport-1130-to-branch-0.3

Conversation

@tdas

@tdas tdas commented Nov 16, 2025

Copy link
Copy Markdown
Contributor

Backport of #1130 to branch-0.3.


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:
image

**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
tdas force-pushed the backport-1130-to-branch-0.3 branch from 041e233 to c034fd7 Compare November 16, 2025 19:20
@tdas
tdas merged commit b4cb2b7 into branch-0.3 Nov 16, 2025
@openinx
openinx deleted the backport-1130-to-branch-0.3 branch March 27, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants