Skip to content

docs(databricks): dbt column types per adapter and the runtime platform a Databricks dbt build must set - #334

Merged
fas89 merged 1 commit into
mainfrom
docs/databricks-dbt-column-types
Dec 4, 2026
Merged

fas89 merged 1 commit into
mainfrom
docs/databricks-dbt-column-types

Conversation

@fas89

@fas89 fas89 commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

What

Documents forge-cli #1187, which is merged into main (squash 528822e1b) and is in no release yet.

  • docs/cli/generate.md: a new section, "Column types in a dbt project". The dialect spellings the 0.7.7 schema admits (int64, float64, datetime2, uniqueidentifier and others) map to a native type on Redshift, DuckDB and Databricks, with what 0.44.0 wrote beside it. A spelling with no native type on the adapter is refused by fluid validate and by fluid generate transformation: the page has the lists per adapter, which builds and exposes are judged, and the message.
  • docs/cli/validate.md, docs/advanced/error-codes.md: the two new finding codes, ERR_CONTRACT_DBT_COLUMN_TYPE and ERR_CONTRACT_DBT_RUNTIME_PLATFORM. The counts on those pages (45 and 38) are not changed here: they already trail the catalog and are recounted from the pinned CLI at the next release.
  • docs/providers/databricks.md: a section, "Setting where a dbt build runs", for what a build with no execution.runtime.platform did through 0.44.0 and what is refused now; the Unity Catalog table fluid apply creates for the dialect spellings (mapped, not refused); the profile lookup wording.
  • docs/cli/import.md: fluid import dbt writes local on the build it makes for a Databricks project, and says so in its report; what the build needs to run as a Databricks job (platform and repository).
  • docs/upgrading.md, "Not in a release yet": four bullets (the refusal of an unmapped type, the mapped spellings, the Unity Catalog column, the runtime platform).
  • All new text is marked "not yet in a release" with forge-cli #1187. The move of the column type table into a module of its own changes nothing a reader sees, so it has no docs.

Validation

  • Every changed sentence was read against forge-cli #1187 at its head 2e06db2cc. The squash commit on main has the same tree as that head (the same tree hash, an empty diff), so nothing read changed in the merge. An earlier read of the same branch found five imprecisions, now fixed (for example: DuckDB keeps varchar for row and super as before, the table lacked the interval row, and the order in which a profiles.yml is looked for). A last read of the new fluid import dbt sentences found one more: setting the field to databricks is not enough for an imported build, which also needs a repository.
  • Run from a build of that head:
    • fluid generate transformation on a Databricks hybrid-reference build with int64, datetime2, float64 and uniqueidentifier columns writes bigint, timestamp_ntz, double and string; 0.44.0 wrote string for all four.
    • fluid validate on a DuckDB build with a bit and a geometry column refuses both with the quoted message and ERR_CONTRACT_DBT_COLUMN_TYPE. fluid generate transformation on a Databricks build with the same columns exits 1 and writes nothing.
    • A Databricks dbt build with no execution.runtime.platform (engine dbt and dbt-databricks) is refused by both commands with the quoted message. The refusal goes away with local or databricks, and does not apply to outputs: [] or to outputs on another platform.
    • fluid import dbt on a manifest with adapter databricks writes local and prints the quoted note under Notes (with --split-by each line starts with the product id in brackets); on a manifest for any other adapter (tried: Snowflake, BigQuery, Redshift, DuckDB, Postgres, Spark) the build has no execution block. The imported build with platform: databricks and no repository is refused (names no repository), and valid once a repository is set.
    • All 79 spellings of the 0.7.7 schema were folded for Redshift, DuckDB, Databricks, BigQuery and Snowflake with the build's own type table: the table and the refused lists on the page match.
  • scripts/check_cli_docs.py in every mode (against data-product-forge==0.44.0, the release sweep against forge-cli's CHANGELOG.md at 6d0e7ba70), scripts/check_providers.py, scripts/gen_contract_reference.py --check, the offline link check on the route mirror, npm run docs:build and node scripts/check-dist-links.mjs: pass.

Not run: a live Databricks workspace, fluid apply against one, and a real dbt run.

…rm a Databricks dbt build must set

Dialect column types such as int64 and datetime2 map to a native type on
Redshift, DuckDB and Databricks, and a type with none is refused by
validate and generate transformation. A dbt build that writes a Databricks
table must set execution.runtime.platform. Not yet in a release.

Signed-off-by: Speculator55005 <50082482+fas89@users.noreply.github.com>
@fas89
fas89 marked this pull request as ready for review December 4, 2026 09:04
@fas89
fas89 merged commit 7d51a7d into main Dec 4, 2026
9 checks passed
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.

1 participant