From d5e6fef40b988f1b3d02036a386a45acb26a94b4 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 13 Nov 2025 08:33:23 +0000 Subject: [PATCH] feat: Add language prompt to default minimal template Adds a language selection prompt to the default minimal template. This allows users to specify whether they are using Python, SQL, or another language. A derived property `language` is also added, which is set to `python` if the user selects Python, and `sql` otherwise. A comment is also added to the welcome message to indicate that the Python template includes a `pyproject.toml` and `tests` directory. --- .../databricks_template_schema.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/libs/template/templates/default-python/databricks_template_schema.json b/libs/template/templates/default-python/databricks_template_schema.json index c4207a3b35..2abbf11b38 100644 --- a/libs/template/templates/default-python/databricks_template_schema.json +++ b/libs/template/templates/default-python/databricks_template_schema.json @@ -1,5 +1,5 @@ { - "welcome_message": "\nWelcome to the default Python template for Databricks Asset Bundles!", + "welcome_message": "\nWelcome to the default Python template for Databricks Asset Bundles! \n// For Python, the template includes a pyproject.toml and tests directory.", "properties": { "project_name": { "type": "string", @@ -36,7 +36,21 @@ "enum": ["yes", "no"], "description": "Use serverless compute", "order": 5 + }, + "project_language": { + "type": "string", + "default": "python", + "enum": [ + "python", + "sql", + "other" + ], + "description": "What language will be used with this project: python, sql, or other?", + "order": 6 } }, + "derived_properties": { + "language": "{{if eq .project_language \"python\"}}python{{else}}sql{{end}}" + }, "success_message": "Workspace to use (auto-detected, edit in '{{.project_name}}/databricks.yml'): {{workspace_host}}\n\n✨ Your new project has been created in the '{{.project_name}}' directory!\n\nPlease refer to the README.md file for \"getting started\" instructions.\nSee also the documentation at https://docs.databricks.com/dev-tools/bundles/index.html." }