Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

migrate_tables_columns_to_semantic_model - source- and target semantic models in different workspaces #2

Closed
MarcAHunt opened this issue Apr 10, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@MarcAHunt
Copy link

Hi m-kovalsky,

first of all thx for this great tool.

I have a small issue with migrating tables and columns to another semantic model.

It all works fine if source- and target-semantic-model reside in the same workspace,
but I can not seem to get it to work if my target-semantic-model is in a different workspace.

What I actually would want to achieve is building new semantic models in a dev-workspace, once I am fine with it, push them to a production-workspace.
Your tool indicates this could be possible.

Here is what I'm doing (copied of notebook cell):
import fabric_cat_tools as fct
import time

newDatasetName = 'targetSM' #Enter the new Direct Lake semantic model name
""" comment
-> I can create the newDataset in any workspace I want.
"""
fct.create_blank_semantic_model(newDatasetName, workspaceName='DevWS')

time.sleep(5)

""" comment
-> re-creates all tables and columns of source_semantic_model (=param 1) in target_semantic_model (=param 2)
-> lakehouseName and lakehouseWorkspaceName define the workspace and lakehouse where the data should be coming from. (Switching datasource, all fine!)

-> PROBLEM:
It does not seem to work if source- and target-semantic-model do not reside in the same workspace!
"""
fct.migrate_tables_columns_to_semantic_model( 'sourceSM', 'targeSM', workspaceName= 'DevWS', lakehouseName= 'LH_Gold', lakehouseWorkspaceName='ProdWS')

fct.migrate_model_objects_to_semantic_model('sourceSM', 'targetSM', workspaceName= 'DevWS')

I am not sure if that's an issue. Could be a feature.

Thx a million for a feedback.

Best Regards from Germany,
Marc

@m-kovalsky
Copy link
Owner

m-kovalsky commented Apr 10, 2024 via email

@MarcAHunt
Copy link
Author

Great. Thx.
Any timeline?

Best Regards,
Marc

@m-kovalsky m-kovalsky added the enhancement New feature or request label Apr 11, 2024
@m-kovalsky
Copy link
Owner

Would you try using a beta version of 0.3.0 in this folder, along with the accompanying notebook. Note that parameter names have changed so following the new notebook will help with that.

https://github.com/m-kovalsky/fabric_cat_tools/tree/main/testing

@MarcAHunt
Copy link
Author

MarcAHunt commented Apr 16, 2024 via email

@m-kovalsky
Copy link
Owner

Great to hear and thank you for testing! The notebook and documented parameters will all be updated once I release this new version. The pip install was still aligned to the main site instead of /testing so glad you used the correct pip install link.

@MarcAHunt
Copy link
Author

MarcAHunt commented Apr 16, 2024 via email

@m-kovalsky
Copy link
Owner

m-kovalsky commented Apr 16, 2024 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants