We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 747435d commit 842f6a7Copy full SHA for 842f6a7
tests/integration/fixtures/test_connect.py
@@ -56,5 +56,7 @@ def is_serverless_cluster(spark: SparkSession, ws: WorkspaceClient) -> bool:
56
Check if the current cluster used is serverless.
57
"""
58
cluster_id = spark.conf.get("spark.databricks.clusterUsageTags.clusterId")
59
+ if not cluster_id:
60
+ raise ValueError("clusterId usage tag does not exist")
61
creator = ws.clusters.get(cluster_id).creator_user_name
62
return not creator # serverless clusters don't have assigned creator
0 commit comments