Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Is sempy/semantic-link library useable through databricks. I can connect to fabric one lake in data bricks through SAS.
Is there any way to install semantic-link in databricks and use from there?
Solved! Go to Solution.
Thanks for the confirmation. I really don't need to use semantic link but I do need query the semantic layer in databricks from fabric.
The true alternative of semantic link is executeQueries Endpoint of the rest api. But the the response returned could be partial dataset as well as AFAIK, and a fetch inside do-while loop needs to be engineered, which is easy to do if the dataset has date parameters or integers, else need to be creatively engineered. I can live with that fir the moment. But I hope there is a better databricks alternative for semantic layer.
Hi @smpa01 ,
Thnaks for using Microsoft Fabric Community,
Currently, SemPy is tailored specifically for Microsoft Fabric and does not natively support Databricks. This means that direct installation and utilization of SemPy within Databricks environments are not supported.
From Microsoft Documentation:
Reference: Semantic Link Overview for Python | Microsoft Learn
However, alternative approaches exist to bridge the gap between Databricks and Power BI datasets: Semantic-link on Databricks - Databricks Community - 74511
Hope this helps. Please reach out for further assistance.
Please consider marking the helpful reply as "Accepted Solution" to help the other members find it more quickly.
Thank you.
Thanks for the confirmation. I really don't need to use semantic link but I do need query the semantic layer in databricks from fabric.
The true alternative of semantic link is executeQueries Endpoint of the rest api. But the the response returned could be partial dataset as well as AFAIK, and a fetch inside do-while loop needs to be engineered, which is easy to do if the dataset has date parameters or integers, else need to be creatively engineered. I can live with that fir the moment. But I hope there is a better databricks alternative for semantic layer.
Thanks for the follow-up.
You're right about the executeQueries endpoint. Handling partial responses and building out a fetch loop does introduce extra effort, especially when the dataset lacks simple parameters like dates or integers. It’s good to know you’ve found a workable approach for now.
If there are any changes or new capabilities for accessing the semantic layer directly from Databricks, will share an update here.
In the meantime, if any of the responses above were helpful, would you mind marking them as a solution? It helps others who might be looking for similar information.
Best,
Vinay.
should be possible. At the end of the day sempy is just a wrapper around the Fabric REST API calls.
"At the end of the day sempy is just a wrapper around the Fabric REST API calls" - At a first glance, it appears so. But I think sempy is more than just that in a sense that it does not have the same limitation of
/executeQueries . So it has an edge over REST API.
AFAIK from documentation, it appears
read_write_pbi_sempy > read_write_pbi_spark
read-write-power-bi-spark (same as REST API)
Previous Link on Sempy vs Spark for PBI
I am not interested in config the REST API in databricks, rather to find a way (if possible) to install and execute sempy directly from databricks notebook.