
Unexpected sempy_labs.directlake.update_direct_lake_model_lakehouse_connection behaviour
Looking to update the workspace for a semantic model, and I found this method which should work for Direct Lake lakehouses.
import sempy_labs as labs
labs.directlake.update_direct_lake_model_lakehouse_connection(
dataset="My Semantic Model",
workspace="Super Workspace",
lakehouse="Reporting",
lakehouse_workspace="Super Duper Workspace"
)
It runs successfully, and it tells me that
🟢 The expression in the 'My Semantic Model' semantic model within the 'Super Workspace' workspace has been updated to point to the 'Reporting' lakehouse in the 'Super Duper Workspace' workspace.
Perfect.
However, the actual binding result is weird.
(See screenshot)
This is what it was before:
Source name: tablename
Source schema: dbo
Storage mode: Direct Lake
Data source type: Lakehouse
Server name: Lakehouse Name
Workspace: Super Workspace
I get that it's sempy-labs, but this functionality is documented as working. Has anyone tried anything similar?