File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/databricks/labs/pytester/fixtures Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ def test_databricks_connect(spark):
2626 """
2727 cluster_id = ws .config .cluster_id
2828 serverless_cluster_id = ws .config .serverless_compute_id
29- print (f"cluster id is: { serverless_cluster_id } " )
3029
3130 if not serverless_cluster_id :
3231 ensure_cluster_is_running (cluster_id , ws )
@@ -41,8 +40,10 @@ def test_databricks_connect(spark):
4140 )
4241
4342 if serverless_cluster_id :
44- logging .debug ("Using serverless compute " )
43+ logging .debug (f "Using serverless cluster id ' { serverless_cluster_id } ' " )
4544 return DatabricksSession .builder .serverless (True ).getOrCreate ()
45+
46+ logging .debug (f"Using cluster id '{ cluster_id } '" )
4647 return DatabricksSession .builder .sdkConfig (ws .config ).getOrCreate ()
4748 except ImportError :
4849 skip ("Please run `pip install databricks-connect`" )
You can’t perform that action at this time.
0 commit comments