Skip to content

Remove unused default-sql versions.tmpl - #6420

Merged
rugpanov merged 1 commit into
mainfrom
remove-dead-default-sql-versions
Aug 31, 2026
Merged

Remove unused default-sql versions.tmpl#6420
rugpanov merged 1 commit into
mainfrom
remove-dead-default-sql-versions

Conversation

@rugpanov

Copy link
Copy Markdown
Contributor

Changes

Delete libs/template/templates/default-sql/library/versions.tmpl. The default-sql bundle template renders no cluster (it targets a SQL warehouse), so its two macros — latest_lts_dbr_version and latest_lts_db_connect_version_spec — are never referenced by any template. The file contained only these two dead macros.

Split out of #6418 (dbt-sql DBR 16.4 bump) to keep that PR focused on a single change.

Tests

  • No rendered template output changes (the macros were never invoked); no changelog fragment needed.
  • default-sql template acceptance tests pass unchanged after the deletion.

This pull request and its description were written by Isaac.

The default-sql bundle template renders no cluster, so its library
macros latest_lts_dbr_version and latest_lts_db_connect_version_spec
are never referenced. The file contained only these two dead macros;
remove it. Split out of the dbt-sql DBR bump (#6418) to keep that PR
focused.

Co-authored-by: Isaac <no-reply@databricks.com>
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: edd9064

Run: 33157906083

Env 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 1 1 274 1194 4:01
💚​ aws windows 1 1 276 1192 3:33
💚​ azure linux 1 1 273 1194 4:06
💚​ azure windows 1 1 275 1192 4:48
💚​ gcp linux 1 1 274 1194 4:07
💚​ gcp windows 1 1 276 1192 3:25
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
Top 3 slowest tests (at least 2 minutes):
duration env testname
4:41 azure windows TestAccept
3:29 aws windows TestAccept
3:21 gcp windows TestAccept

@rugpanov
rugpanov marked this pull request as ready for review August 28, 2026 09:23
@rugpanov
rugpanov added this pull request to the merge queue Aug 31, 2026
Merged via the queue into main with commit e7410a1 Aug 31, 2026
27 checks passed
@rugpanov
rugpanov deleted the remove-dead-default-sql-versions branch August 31, 2026 11:22
rugpanov added a commit that referenced this pull request Sep 2, 2026
…omment

- Drop the claims about default-sql's versions.tmpl and the SQL templates
  pinning an older DBR, both invalidated by #6420 and #6418
- Attribute the 16.4 DB Connect floor to the Python/serverless-env
  compatibility constraint instead of DBR 15's support status
- Remove the comment's absolute "never bump to match the newest serverless
  environment", which contradicted the hard compatibility constraint
- Extend the sync rule and the globs to the hardcoded environment_version
  and requires-python occurrences outside library/versions.tmpl
- Shrink the versions.tmpl comment to the invariant plus a pointer, so the
  rule has a single home
- Reference the rule file by repo-root path and name ./task test-update-templates

Co-authored-by: Isaac <no-reply@databricks.com>
hejcman-enverus pushed a commit to hejcman-enverus/databricks_cli that referenced this pull request Sep 3, 2026
## Changes

Follow-up from databricks#6378: bump the `dbt-sql` bundle template's classic
(non-serverless) compute to Databricks Runtime 16.4 LTS.

- **dbt-sql**: bump `latest_lts_dbr_version` from `15.4.x-scala2.12` to
`16.4.x-scala2.12`. This matches the `default` template (already pinned
to 16.4) and aligns the cluster runtime's Python version (3.12) with
serverless environment version 5.
- **dbt-sql**: remove the unused, TODO-flagged
`latest_lts_db_connect_version_spec` macro (flagged for removal in
databricks#6378; no template references it).

The unrelated dead-code removal in `default-sql/library/versions.tmpl`
was split into databricks#6420 (merged); this branch is rebased on top of it.

## Tests

- New acceptance variant `acceptance/bundle/templates/dbt-sql-classic`
initializes dbt-sql with `serverless: no` and diffs the generated job
against the serverless golden, locking in the classic `new_cluster`
`spark_version: 16.4.x-scala2.12`. Before this, no acceptance test
rendered the classic (non-serverless) path.
- Note for future editors: this variant diffs against the sibling
`dbt-sql` test's committed golden, so any change to the base `dbt-sql`
job template requires regenerating both goldens.
- Existing dbt-sql (serverless) template goldens are unchanged;
acceptance tests pass.

This pull request and its description were written by Isaac.

---------

Co-authored-by: Isaac <no-reply@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants