Add changes in spec apply (#12759)

## Problem
All changes are no-op. 

## Summary of changes
This commit is contained in:
HaoyuHuang
2025-07-29 08:22:04 -07:00
committed by GitHub
parent 1bb434ab74
commit 62d844e657
4 changed files with 296 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
ALTER ROLE databricks_monitor SET statement_timeout = '60s';
CREATE OR REPLACE FUNCTION health_check_write_succeeds()
RETURNS INTEGER AS $$
BEGIN
INSERT INTO health_check VALUES (1, now())
ON CONFLICT (id) DO UPDATE
SET updated_at = now();
RETURN 1;
EXCEPTION WHEN OTHERS THEN
RAISE EXCEPTION '[DATABRICKS_SMGR] health_check failed: [%] %', SQLSTATE, SQLERRM;
RETURN 0;
END;
$$ LANGUAGE plpgsql;