From e9b111237091ef61e0dba239e6d62076962e2ba0 Mon Sep 17 00:00:00 2001 From: Edward Feng <67326663+edwardfeng-db@users.noreply.github.com> Date: Thu, 19 Jun 2025 22:26:09 -0700 Subject: [PATCH 1/3] Update databricks_template_schema.json for scala-job examples This PR addresses some feedback from the bug bash, makes the instructions more clear and fix the issue by accepting trailing slashes. --- contrib/templates/scala-job/databricks_template_schema.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/templates/scala-job/databricks_template_schema.json b/contrib/templates/scala-job/databricks_template_schema.json index 2723d1d7..79579776 100644 --- a/contrib/templates/scala-job/databricks_template_schema.json +++ b/contrib/templates/scala-job/databricks_template_schema.json @@ -10,10 +10,10 @@ }, "artifacts_dest_path": { "type": "string", - "description": "\nPlease provide the Volumes destination path in Databricks where the directory will be created containing the JAR and other artifacts to store. [example: /Volumes/abcdef1234567890].\nNote: Only when using Standard clusters, your admin must allowlist the Volumes JAR path you specify for your workspace (see https://docs.databricks.com/en/data-governance/unity-catalog/manage-privileges/allowlist.html)", + "description": "\nPlease provide the UC Volumes destination path in Databricks where the directory will be created containing the JAR and other artifacts to store. [example: /Volumes/abcdef1234567890].\nNote: Only when using Standard clusters, your admin must allowlist the Volumes JAR path you specify for your workspace (see https://docs.databricks.com/en/data-governance/unity-catalog/manage-privileges/allowlist.html)", "order": 2, - "pattern": "^/Volumes(?:/[a-z0-9_-]+)+$", - "pattern_match_failure_message": "Path must be of the form ^/Volumes(?:/[a-z0-9_-]+)+$" + "pattern": "^/Volumes(?:/[a-z0-9_-]+)+/?$", + "pattern_match_failure_message": "Please enter a valid path like /Volumes/my-folder. Only lowercase letters, numbers, dashes, and underscores are allowed in folder names." } } } From 9ed3a394513c88542a298fe764f2d5a1b16da504 Mon Sep 17 00:00:00 2001 From: Edward Feng <67326663+edwardfeng-db@users.noreply.github.com> Date: Fri, 20 Jun 2025 10:22:20 -0700 Subject: [PATCH 2/3] Update contrib/templates/scala-job/databricks_template_schema.json Co-authored-by: Pieter Noordhuis --- contrib/templates/scala-job/databricks_template_schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/templates/scala-job/databricks_template_schema.json b/contrib/templates/scala-job/databricks_template_schema.json index 79579776..072bc529 100644 --- a/contrib/templates/scala-job/databricks_template_schema.json +++ b/contrib/templates/scala-job/databricks_template_schema.json @@ -10,7 +10,7 @@ }, "artifacts_dest_path": { "type": "string", - "description": "\nPlease provide the UC Volumes destination path in Databricks where the directory will be created containing the JAR and other artifacts to store. [example: /Volumes/abcdef1234567890].\nNote: Only when using Standard clusters, your admin must allowlist the Volumes JAR path you specify for your workspace (see https://docs.databricks.com/en/data-governance/unity-catalog/manage-privileges/allowlist.html)", + "description": "\nPlease provide the Unity Catalog volume destination path in Databricks where the directory will be created containing the JAR and other artifacts to store. [example: /Volumes/abcdef1234567890].\nNote: Only when using Standard clusters, your admin must allowlist the volume JAR path you specify for your workspace (see https://docs.databricks.com/en/data-governance/unity-catalog/manage-privileges/allowlist.html)", "order": 2, "pattern": "^/Volumes(?:/[a-z0-9_-]+)+/?$", "pattern_match_failure_message": "Please enter a valid path like /Volumes/my-folder. Only lowercase letters, numbers, dashes, and underscores are allowed in folder names." From d0e725ecbaf40d028eb407e6b4337586202c83b8 Mon Sep 17 00:00:00 2001 From: Edward Feng <67326663+edwardfeng-db@users.noreply.github.com> Date: Fri, 20 Jun 2025 10:22:30 -0700 Subject: [PATCH 3/3] Update contrib/templates/scala-job/databricks_template_schema.json Co-authored-by: Garland Zhang --- contrib/templates/scala-job/databricks_template_schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/templates/scala-job/databricks_template_schema.json b/contrib/templates/scala-job/databricks_template_schema.json index 072bc529..5dc9b4ea 100644 --- a/contrib/templates/scala-job/databricks_template_schema.json +++ b/contrib/templates/scala-job/databricks_template_schema.json @@ -13,7 +13,7 @@ "description": "\nPlease provide the Unity Catalog volume destination path in Databricks where the directory will be created containing the JAR and other artifacts to store. [example: /Volumes/abcdef1234567890].\nNote: Only when using Standard clusters, your admin must allowlist the volume JAR path you specify for your workspace (see https://docs.databricks.com/en/data-governance/unity-catalog/manage-privileges/allowlist.html)", "order": 2, "pattern": "^/Volumes(?:/[a-z0-9_-]+)+/?$", - "pattern_match_failure_message": "Please enter a valid path like /Volumes/my-folder. Only lowercase letters, numbers, dashes, and underscores are allowed in folder names." + "pattern_match_failure_message": "Please enter a valid path like /Volumes/my-folder/. Only lowercase letters, numbers, dashes, and underscores are allowed in folder names." } } }