Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Power BI & Databricks - Close active connection

Hello,

 

We are currently using Power BI in import mode with databricks. Every morning, my semantic model connects to databricks sql warehouse and import the datas. The databricks SQL warehouse is setup to auto stop after 5 minutes of inactivity.
According to my databricks colleague, after the refresh, the power bi connection to databricks stays active for 1 hour so the databricks can't stop. 
I looked at the databricks connector in Power BI but I don't see anything that could help me like timeout or something else. Does any one has this problem or an idea to solve this ?

 

Regards,

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

     

    You can use the STARTMENT_TIMEOUT parameter. The configuration parameter sets a timeout value in seconds. Any Databricks SQL statement with a wall clock run time exceeding the value is timed out.

    You can set this parameter at the session level using the SET statement and at the global level using SQL configuration parameters or SQL Warehouses API.

    Set a timeout value in seconds between 0 and 172800 seconds (2 days). Any Databricks SQL statement that has a wall clock execution time exceeding the set value is halted.

     

    Here is the link of the details:

    STATEMENT_TIMEOUT - Azure Databricks - Databricks SQL | Microsoft Learn

     

    If the above one can't help you, could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

    How to provide sample data in the Power BI Forum

    How to Get Your Question Answered Quickly

    And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

    Best Regards

    Zhengdong Xu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.