Skip to content

Enable creating shortcuts pointing to warehouse tables#987

Closed
lBilali wants to merge 4 commits intomicrosoft:mainfrom
lBilali:create_shortcut_to_warehouse
Closed

Enable creating shortcuts pointing to warehouse tables#987
lBilali wants to merge 4 commits intomicrosoft:mainfrom
lBilali:create_shortcut_to_warehouse

Conversation

@lBilali
Copy link
Contributor

@lBilali lBilali commented Nov 27, 2025

Fabric supports creating shortcuts pointing to warehouse tables as well
but create_shortcut_onelake supports only lakehouse

this PR makes it possible to pass a lakehouse or warehouse name or UUD

for backward compatibility the argument name is still source_lakehouse but can be used to pass a lake house or a warehouse

@lBilali lBilali changed the title create a shortcut pointing to warehouse tables Enable creating shortcuts pointing to warehouse tables Nov 27, 2025
@crazy-treyn
Copy link
Contributor

@m-kovalsky FYI #501 is an open PR from several months back that is ready to merge and will bring support for creating shortcuts to all Fabric data store items:

  • Lakehouse
  • Warehouse
  • SQL Database
  • Mirrored Database
  • KQL Database

@m-kovalsky
Copy link
Collaborator

Thanks but I don't think this is necessary now. See #501.

@m-kovalsky m-kovalsky closed this Dec 15, 2025
@danmeissner
Copy link

danmeissner commented Jan 6, 2026

This change that PR #501 made, limits the OneLake shortcuts to the 5 specified source types.

It does not include the ability to shortcut to the 'MirroredAzureDatabricksCatalog' type. Which is a valid type (https://learn.microsoft.com/en-us/rest/api/fabric/core/items/create-item?tabs=HTTP#itemtype)

This is important for those of us that are shortcutting directly to Databricks using the built in Mirroring capability.

The conflict appears to happen when an attempt is made to resolve the item name to an item_id. If an item_id is used in the create_shortcut_onelake function (not a name) and the source_item_type is not specified, the function will create the shortcuts properly.

Can this additional type be added to the create_shortcut_onelake function so that source_item can either be a name or an ID like it is with the other types?

@crazy-treyn
Copy link
Contributor

@danmeissner I submitted #1022 to address this

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.

4 participants