Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Model To Direct Lake Migration #202

Open
cvlmonica opened this issue Oct 14, 2024 · 5 comments
Open

Import Model To Direct Lake Migration #202

cvlmonica opened this issue Oct 14, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@cvlmonica
Copy link

While doing the migration from import mode to direct lake.
It is considering #Measures as calculated table and it is stopping the migration.

Image

What should we do here?!
Any suggestions so that the Semantic-Link-Labs ignores this!?

@cvlmonica cvlmonica added the bug Something isn't working label Oct 14, 2024
@m-kovalsky
Copy link
Collaborator

What is the '# Measure' table? Is it a regular data table? Does it have any columns? Please share more details on the properties of this table.

@cvlmonica
Copy link
Author

Yes, It is an empty calculated table! to place all the measures at one place!
Since we cannot have an empty table in lakehouse? how to do this?

@m-kovalsky
Copy link
Collaborator

You need to create a sort of 'dummy' table in the lakehouse, as such, add it to the model, and place all the measures in that table.

import sempy_labs as labs
import pandas as pd

df = pd.DataFrame(columns=['NewCol'])
schema = {
    "NewCol": "str",
}
labs.save_as_delta_table(dataframe=df, delta_table_name="MeasuresTable", write_mode='overwrite', schema=schema)

@cvlmonica
Copy link
Author

I have tried running the above script and created an measures table and when I trying to run the migrate_model_objects_to_semantic_model() function, it is throwing below error:

Few measures are getting created which are not part of that measures table.

Image

Image

With this, what is happening is it is breaking at this point and it cannot create other objects in semantic model!

@cvlmonica
Copy link
Author

Hi! any solution on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants