Skip to content

Commit c33cad5

Browse files
committed
Local lakehouse import safecheck
1 parent b678cb4 commit c33cad5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/fabric_cli/commands/fs/impor/fab_fs_import_item.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ def import_single_item(item: Item, args: Namespace) -> None:
2525
args.ws_id = item.workspace.id
2626
input_path = utils_storage.get_import_path(args.input)
2727

28+
if input_path["type"] != "local":
29+
raise FabricCLIError(
30+
"Import only supports local paths. OneLake paths are not supported as import input.",
31+
fab_constant.ERROR_NOT_SUPPORTED,
32+
)
33+
2834
if args.force or utils_ui.prompt_confirm():
2935

3036
# Check first if an item exists

0 commit comments

Comments
 (0)