Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ jobs:
# Tools for comprehensive PR review
claude_args: |
--allowedTools "mcp__github_inline_comment__create_inline_comment,mcp__github__get_issue_comments,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh list-review-threads:*),Bash(gh resolve-thread:*)"
--model "claude-opus-4-7"
--model "claude-opus-5"
--effort ${{ inputs.effort || 'medium' }}

- name: Write run summary
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.7.12](https://github.com/cube-js/cube/compare/v1.7.11...v1.7.12) (2026-07-27)

### Bug Fixes

- **athena-driver:** Correct SQL parameter escaping ([#11370](https://github.com/cube-js/cube/issues/11370)) ([5ad0041](https://github.com/cube-js/cube/commit/5ad0041a1aa7820d16e2566f7ea50ca2227f21c3))
- **pinot/dremio/ksql/databriks/hive/jdbc-driver:** Сorrect SQL parameter escaping ([#11374](https://github.com/cube-js/cube/issues/11374)) ([a743790](https://github.com/cube-js/cube/commit/a7437904411cbf268a30bc985c6d5b3b8bbe0e2c))
- **trino/prestodb-driver:** Сorrect SQL parameter escaping ([#11345](https://github.com/cube-js/cube/issues/11345)) ([463e602](https://github.com/cube-js/cube/commit/463e60284a5a4073eb7b7d2f11c4b315deaa2d94))

## [1.7.11](https://github.com/cube-js/cube/compare/v1.7.8...v1.7.11) (2026-07-26)

### Bug Fixes
Expand Down
53 changes: 46 additions & 7 deletions docs-mintlify/docs/integrations/dbt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ Cube spins up a short-lived, isolated sandbox and:
5. **Commits the generated files** to a branch for review, then tears the sandbox
down.

**No connection to your data warehouse is made during a pull.** Cube uses
**By default, no connection to your data warehouse is made during a pull.** Cube uses
`dbt parse`, not `dbt run` or `dbt compile`, so it reads your project's structure
without ever querying your warehouse. dbt pull generates cube definitions; it assumes
the underlying tables were already built by your own production `dbt run`.
the underlying tables were already built by your own production `dbt run`. The one
exception is [Infer column types from dbt catalog](#infer-column-types-from-dbt-catalog),
an opt-in option that reads real column types from your warehouse.

## Prerequisites

Expand Down Expand Up @@ -146,6 +148,33 @@ automated — uses the same configuration:
| **Add default measures** | On | Adds a `count` measure to every cube, and `sum` measures for additive numeric columns. |
| **Include descriptions** | On | Carries dbt model and column descriptions into cubes and dimensions. |
| **Generate joins** | On | Infers joins between cubes from dbt `relationships` tests and foreign-key constraints. |
| **Infer column types from dbt catalog** | Off | Reads real warehouse column types from dbt's `catalog.json` instead of guessing from column names. See [below](#infer-column-types-from-dbt-catalog). |

### Infer column types from dbt catalog

<Warning>

This option is currently in preview, and its behavior may still change. Reach out to the
[Cube support team](/admin/account-billing/support) if you run into issues.

</Warning>

Without it, a dimension's type comes from a `data_type` declared in your dbt YAML, and —
when none is declared — from a column-name heuristic (`*_id` → `number`, `created_at` →
`time`, …). Enable this option and the pull additionally runs `dbt docs generate` to
produce dbt's `catalog.json`, which carries the **actual warehouse column types**.

Type precedence becomes: **declared `data_type` → catalog type → column-name heuristic**.
An explicit `data_type` in your dbt YAML still wins; the catalog only fills the gaps.

- **This step connects to your warehouse** (`dbt docs generate` queries the warehouse
metadata), unlike the rest of the pull. The models must already be built.
- **Supported on Snowflake, Amazon Redshift, and PostgreSQL.** It's skipped on Google
BigQuery, Databricks, and Amazon Athena, whose sandbox profiles can't open a
connection.
- **Best-effort.** If catalog generation or the catalog read fails — no connectivity,
unbuilt models, unreadable file — it's logged and skipped, and the pull completes on
declared and name-based types exactly as it would with the option off.

## Pass environment variables to dbt

Expand Down Expand Up @@ -302,15 +331,22 @@ For each dbt model in your project:
value of the deployment's `CUBEJS_DB_DATABRICKS_CATALOG` environment variable,
or `hive_metastore` if it isn't set.
- **Each column becomes a dimension.** The dimension type is inferred from the
column's `data_type` where available, otherwise from the column name:
column's `data_type` where available, then — if
[Infer column types from dbt catalog](#infer-column-types-from-dbt-catalog) is
enabled — from the warehouse type in `catalog.json`, and otherwise from the column
name:

| dbt `data_type` | Cube dimension type |
| Column type | Cube dimension type |
| --- | --- |
| `varchar`, `text`, `string`, `char` | `string` |
| `integer`, `int`, `bigint`, `smallint`, `decimal`, `numeric`, `float`, `double`, `real` | `number` |
| `varchar`, `text`, `string`, `char`, and non-scalar types (`json`, `variant`, `array`, …) | `string` |
| `integer`, `int`, `bigint`, `smallint`, `decimal`, `numeric`, `number`, `float`, `double`, `real` | `number` |
| `date`, `datetime`, `timestamp`, `timestamptz`, `time` | `time` |
| `boolean`, `bool` | `boolean` |

Vendor spellings and parameters are normalized, so `NUMBER(38,0)`,
`character varying(256)`, `TIMESTAMP_NTZ(9)`, `INT64`, and `double precision` all map
as expected.

- **Model and column descriptions** from your dbt project are carried over to the
cubes and dimensions.
- **A `count` measure** is added to every cube.
Expand Down Expand Up @@ -503,7 +539,10 @@ Each push creates exactly two new files:
- **Pull is one-directional** — dbt pull never writes back to your dbt repository.
Promoting cubes into dbt is the [dbt push](#push-cubes-to-dbt) direction (in preview).
- **No warehouse connection** — a pull doesn't trigger a `dbt run`; it assumes your
tables are already built.
tables are already built. The only exception is the opt-in
[Infer column types from dbt catalog](#infer-column-types-from-dbt-catalog) option
(in preview), which runs `dbt docs generate` on Snowflake, Amazon Redshift, and
PostgreSQL.
- **One dbt project per deployment.**

## Troubleshooting
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.7.11",
"version": "1.7.12",
"npmClient": "yarn",
"command": {
"bootstrap": {
Expand Down
4 changes: 4 additions & 0 deletions packages/cubejs-api-gateway/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.7.12](https://github.com/cube-js/cube/compare/v1.7.11...v1.7.12) (2026-07-27)

**Note:** Version bump only for package @cubejs-backend/api-gateway

## [1.7.11](https://github.com/cube-js/cube/compare/v1.7.8...v1.7.11) (2026-07-26)

### Bug Fixes
Expand Down
10 changes: 5 additions & 5 deletions packages/cubejs-api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@cubejs-backend/api-gateway",
"description": "Cube API Gateway",
"author": "Cube Dev, Inc.",
"version": "1.7.11",
"version": "1.7.12",
"repository": {
"type": "git",
"url": "https://github.com/cube-js/cube.git",
Expand All @@ -27,9 +27,9 @@
"dist/src/*"
],
"dependencies": {
"@cubejs-backend/native": "1.7.11",
"@cubejs-backend/query-orchestrator": "1.7.11",
"@cubejs-backend/shared": "1.7.11",
"@cubejs-backend/native": "1.7.12",
"@cubejs-backend/query-orchestrator": "1.7.12",
"@cubejs-backend/shared": "1.7.12",
"@ungap/structured-clone": "^0.3.4",
"assert-never": "^1.4.0",
"body-parser": "^1.19.0",
Expand All @@ -53,7 +53,7 @@
"zod": "^4.1.13"
},
"devDependencies": {
"@cubejs-backend/linter": "1.7.11",
"@cubejs-backend/linter": "1.7.12",
"@types/express": "^4.17.21",
"@types/jest": "^29",
"@types/jsonwebtoken": "^9.0.2",
Expand Down
6 changes: 6 additions & 0 deletions packages/cubejs-athena-driver/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.7.12](https://github.com/cube-js/cube/compare/v1.7.11...v1.7.12) (2026-07-27)

### Bug Fixes

- **athena-driver:** Correct SQL parameter escaping ([#11370](https://github.com/cube-js/cube/issues/11370)) ([5ad0041](https://github.com/cube-js/cube/commit/5ad0041a1aa7820d16e2566f7ea50ca2227f21c3))

## [1.7.11](https://github.com/cube-js/cube/compare/v1.7.8...v1.7.11) (2026-07-26)

**Note:** Version bump only for package @cubejs-backend/athena-driver
Expand Down
10 changes: 5 additions & 5 deletions packages/cubejs-athena-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@cubejs-backend/athena-driver",
"description": "Cube.js Athena database driver",
"author": "Cube Dev, Inc.",
"version": "1.7.11",
"version": "1.7.12",
"repository": {
"type": "git",
"url": "https://github.com/cube-js/cube.git",
Expand Down Expand Up @@ -31,12 +31,12 @@
"dependencies": {
"@aws-sdk/client-athena": "^3.22.0",
"@aws-sdk/credential-providers": "^3.22.0",
"@cubejs-backend/base-driver": "1.7.11",
"@cubejs-backend/shared": "1.7.11"
"@cubejs-backend/base-driver": "1.7.12",
"@cubejs-backend/shared": "1.7.12"
},
"devDependencies": {
"@cubejs-backend/linter": "1.7.11",
"@cubejs-backend/testing-shared": "1.7.11",
"@cubejs-backend/linter": "1.7.12",
"@cubejs-backend/testing-shared": "1.7.12",
"@types/ramda": "^0.27.40",
"typescript": "~5.2.2"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/cubejs-backend-cloud/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.7.12](https://github.com/cube-js/cube/compare/v1.7.11...v1.7.12) (2026-07-27)

**Note:** Version bump only for package @cubejs-backend/cloud

## [1.7.11](https://github.com/cube-js/cube/compare/v1.7.8...v1.7.11) (2026-07-26)

**Note:** Version bump only for package @cubejs-backend/cloud
Expand Down
6 changes: 3 additions & 3 deletions packages/cubejs-backend-cloud/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cubejs-backend/cloud",
"version": "1.7.11",
"version": "1.7.12",
"description": "Cube Cloud package",
"main": "dist/src/index.js",
"typings": "dist/src/index.d.ts",
Expand Down Expand Up @@ -30,15 +30,15 @@
"devDependencies": {
"@babel/core": "^7.24.5",
"@babel/preset-env": "^7.24.5",
"@cubejs-backend/linter": "1.7.11",
"@cubejs-backend/linter": "1.7.12",
"@types/fs-extra": "^9.0.8",
"@types/jest": "^29",
"jest": "^29",
"typescript": "~5.2.2"
},
"dependencies": {
"@cubejs-backend/dotenv": "^9.0.2",
"@cubejs-backend/shared": "1.7.11",
"@cubejs-backend/shared": "1.7.12",
"chokidar": "^3.5.1",
"env-var": "^6.3.0",
"form-data": "^4.0.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/cubejs-backend-maven/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.7.12](https://github.com/cube-js/cube/compare/v1.7.11...v1.7.12) (2026-07-27)

**Note:** Version bump only for package @cubejs-backend/maven

## [1.7.11](https://github.com/cube-js/cube/compare/v1.7.8...v1.7.11) (2026-07-26)

**Note:** Version bump only for package @cubejs-backend/maven
Expand Down
6 changes: 3 additions & 3 deletions packages/cubejs-backend-maven/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@cubejs-backend/maven",
"description": "Cube.js Maven Wrapper for java dependencies downloading",
"author": "Cube Dev, Inc.",
"version": "1.7.11",
"version": "1.7.12",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down Expand Up @@ -31,12 +31,12 @@
"dist/src/*"
],
"dependencies": {
"@cubejs-backend/shared": "1.7.11",
"@cubejs-backend/shared": "1.7.12",
"source-map-support": "^0.5.19",
"xmlbuilder2": "^2.4.0"
},
"devDependencies": {
"@cubejs-backend/linter": "1.7.11",
"@cubejs-backend/linter": "1.7.12",
"@types/jest": "^29",
"@types/node": "^22",
"jest": "^29",
Expand Down
4 changes: 4 additions & 0 deletions packages/cubejs-backend-native/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.7.12](https://github.com/cube-js/cube/compare/v1.7.11...v1.7.12) (2026-07-27)

**Note:** Version bump only for package @cubejs-backend/native

## [1.7.11](https://github.com/cube-js/cube/compare/v1.7.8...v1.7.11) (2026-07-26)

### Bug Fixes
Expand Down
12 changes: 6 additions & 6 deletions packages/cubejs-backend-native/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/cubejs-backend-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cubejs-backend/native",
"version": "1.7.11",
"version": "1.7.12",
"author": "Cube Dev, Inc.",
"description": "Native module for Cube.js (binding to Rust codebase)",
"main": "dist/js/index.js",
Expand Down Expand Up @@ -39,7 +39,7 @@
"dist/js"
],
"devDependencies": {
"@cubejs-backend/linter": "1.7.11",
"@cubejs-backend/linter": "1.7.12",
"@types/jest": "^29",
"@types/node": "^22",
"cargo-cp-artifact": "^0.1.9",
Expand All @@ -50,8 +50,8 @@
"uuid": "^8.3.2"
},
"dependencies": {
"@cubejs-backend/cubesql": "1.7.11",
"@cubejs-backend/shared": "1.7.11",
"@cubejs-backend/cubesql": "1.7.12",
"@cubejs-backend/shared": "1.7.12",
"@cubejs-infra/post-installer": "^0.0.7"
},
"resources": {
Expand Down
7 changes: 7 additions & 0 deletions packages/cubejs-backend-shared/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.7.12](https://github.com/cube-js/cube/compare/v1.7.11...v1.7.12) (2026-07-27)

### Bug Fixes

- **pinot/dremio/ksql/databriks/hive/jdbc-driver:** Сorrect SQL parameter escaping ([#11374](https://github.com/cube-js/cube/issues/11374)) ([a743790](https://github.com/cube-js/cube/commit/a7437904411cbf268a30bc985c6d5b3b8bbe0e2c))
- **trino/prestodb-driver:** Сorrect SQL parameter escaping ([#11345](https://github.com/cube-js/cube/issues/11345)) ([463e602](https://github.com/cube-js/cube/commit/463e60284a5a4073eb7b7d2f11c4b315deaa2d94))

## [1.7.11](https://github.com/cube-js/cube/compare/v1.7.8...v1.7.11) (2026-07-26)

**Note:** Version bump only for package @cubejs-backend/shared
Expand Down
4 changes: 2 additions & 2 deletions packages/cubejs-backend-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cubejs-backend/shared",
"version": "1.7.11",
"version": "1.7.12",
"description": "Shared code for Cube.js backend packages",
"main": "dist/src/index.js",
"typings": "dist/src/index.d.ts",
Expand All @@ -27,7 +27,7 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@cubejs-backend/linter": "1.7.11",
"@cubejs-backend/linter": "1.7.12",
"@types/bytes": "^3.1.5",
"@types/cli-progress": "^3.9.1",
"@types/decompress": "^4.2.7",
Expand Down
Loading
Loading