โ12-18-2024 06:30 AM
How can I block the use of statement_timeout at the session level in Databricks? I want the global parameter to be enforced even if a SET statement_timeout has been executed in Databricks notebooks."
โ12-18-2024 06:47 AM
To set a workspace-level timeout, go to the workspace admin settings, click Compute, then click Manage next to SQL warehouses. In the SQL Configuration Parameters setting, add a configuration parameter where the timeout value is in seconds.
https://docs.databricks.com/ja/sql/language-manual/parameters/statement_timeout.html
โ12-18-2024 12:26 PM
I did this, but when a user uses the set statement_timeout command in their own Databricks notebook, the query exceeds the time determined by the global parameter
โ12-18-2024 12:30 PM
Is the notebook pointing to an SQL warehouse or it is pointing to an all purpose cluster or serverless compute?
โ12-18-2024 12:33 PM
serverless compute SQL
โ12-18-2024 01:08 PM
To revalidate this, are you using Serverless SQL Warehouse or Serverless Compute which are different? Can you share an screenshot of the compute being used to make sure we are aligned?
3 weeks ago
3 weeks ago
Yes, this global config only applies to Serverless SQL Warehouses, but wont apply if you use serverless compute for notebooks
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group