Forum Discussion

sha9189's avatar
sha9189
Regular Visitor
1 year ago

Construct File API Path to use in a Notebook to access data in non-default Lakehouse Folder

I am trying to set up Great Expectations (GX) to use in a Notebook. 

 

Tutorial: https://learn.microsoft.com/en-us/fabric/data-science/tutorial-great-expectations

 

Code: 

context = gx.get_context(project_root_dir="/lakehouse/default/Files/gx")
 
The above code connects GX to the FileDataContext folder hierarchy. This approach requires the my GX Project Root Dir folder to sit in the DEFAULT Lakehouse.
 
But I want to point to the same folder but need the DEFAULT lakehouse to be another lakehouse .
 
When I use ABFS Path like: 
context = gx.get_context(project_root_dir="abfss://[email protected]/xxxxxxxx/Files/gx")
 
where the actual path parts are replaced with xxxxx to maintain privacy. 
 
Issue: GX is not able to access the folder I need it to access. How do I construct a File API Path or what do I use for the project_root_dir so that it can access a folder in the lakehouse that is not the default lakehouse.