The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I would like to know if it is possible to get a list using spark in notebook of all shorcut tables in a specific lakehouse without using the API (OneLake Shortcuts - List Shortcuts - REST API (Core) | Microsoft Learn)
thanks!
Solved! Go to Solution.
Fabric currently does not expose a builtin spark method or metadata table that allows you to list OneLake shortcuts directly frm a spark notebook within a Lakehouse. The officially supported way to list shortcuts is through the REST API (list shortcuts core API) that you referenced. If you list tables using spark.catalog.listTables(), this will only show the managed or external tables registered in the metastore & not the shortcuts unless those they are mounted and registered as tables. As a workaround you can maintain a metadata table manually in your Lakehouse listing shortcuts & use the REST API externally (via Fabric Notebook using requests with access_token) and write the results to a Delta table for downstream use.
Fabric currently does not expose a builtin spark method or metadata table that allows you to list OneLake shortcuts directly frm a spark notebook within a Lakehouse. The officially supported way to list shortcuts is through the REST API (list shortcuts core API) that you referenced. If you list tables using spark.catalog.listTables(), this will only show the managed or external tables registered in the metastore & not the shortcuts unless those they are mounted and registered as tables. As a workaround you can maintain a metadata table manually in your Lakehouse listing shortcuts & use the REST API externally (via Fabric Notebook using requests with access_token) and write the results to a Delta table for downstream use.
Hi @PAC8309
I don't think it's possible without using API's as of now. You can submit your Idea here: Fabric Ideas - Microsoft Fabric CommunityIf you get enough votes, Micorsoft ppl will implement this in future.
Thank you!!!
User | Count |
---|---|
20 | |
13 | |
6 | |
3 | |
3 |
User | Count |
---|---|
49 | |
25 | |
17 | |
12 | |
12 |