Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/sempy_labs/lakehouse/_shortcuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def create_shortcut_onelake(
source_item : str | uuid.UUID, default=None
The source Fabric data store item in which the table resides. Can be either the Name or ID of the item.
source_item_type: str, default="Lakehouse"
The source Fabric data store item type. Options are 'Lakehouse', 'Warehouse', 'MirroredDatabase', 'SQLDatabase', and 'KQLDatabase'.
The source Fabric data store item type. Options are 'Lakehouse', 'Warehouse', 'MirroredDatabase', 'SQLDatabase', 'KQLDatabase', and 'MirroredAzureDatabricksCatalog'.
source_path : str, default="Tables"
A string representing the full path to the table/file in the source lakehouse, including either "Files" or "Tables". Examples: Tables/FolderName/SubFolderName; Files/FolderName/SubFolderName.
destination_path: str, default="Tables"
Expand Down Expand Up @@ -84,10 +84,17 @@ def create_shortcut_onelake(
)
if not (
source_item_type
in ["Lakehouse", "Warehouse", "MirroredDatabase", "SQLDatabase", "KQLDatabase"]
in [
"Lakehouse",
"Warehouse",
"MirroredDatabase",
"SQLDatabase",
"KQLDatabase",
"MirroredAzureDatabricksCatalog",
]
):
raise ValueError(
f"{icons.red_dot} The 'source_item_type' parameter must be 'Lakehouse', 'Warehouse', 'MirroredDatabase', 'SQLDatabase', or 'KQLDatabase'"
f"{icons.red_dot} The 'source_item_type' parameter must be 'Lakehouse', 'Warehouse', 'MirroredDatabase', 'SQLDatabase', 'KQLDatabase', or 'MirroredAzureDatabricksCatalog'"
)

(source_workspace_name, source_workspace_id) = resolve_workspace_name_and_id(
Expand Down