Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

dbt-altertable

Latest version: v0.2.17

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
PyPI package Publisher: org:altertable
1 Stars
2 Forks
8 Versions
1.7K Downloads
Python Repo language

Scan summary

dbt-altertable was last scanned on 26 Nov 2026 at version 0.2.17. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest was published on 26 Nov 2026.
  • Findings: No rules fired in version 0.2.17.
  • Downloads: 1,702 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.17 LATEST 26 Nov 2026 No rules fired
0.2.16 6 Nov 2026 No rules fired
0.2.15 4 Nov 2026 No rules fired
0.2.14 29 Oct 2026 Not shown
0.2.13 16 Oct 2026 Not shown

No rules fired in 0.2.17

Findings

Findings for v0.2.17. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.17; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

dbt-altertable

CI PyPI version Python versions License: MIT

A dbt adapter for Altertable, backed by Arrow Flight SQL.

Requirements

  • Python 3.10+
  • dbt-core >=1.8,<2.0

Installation

pip install dbt-altertable

Or with uv:

uv add dbt-altertable

Configuration

Add a profile to ~/.dbt/profiles.yml:

my_project:
  target: dev
  outputs:
    dev:
      type: altertable
      username: your_username
      password: your_password
      database: your_database
      schema: your_schema
      host: flight.altertable.ai # optional, this is the default
      port: 443 # optional, this is the default
      tls: true # optional, this is the default
      compute_size: XL # optional, server default if omitted
Field Required Default Description
username yes — Altertable username
password yes — Altertable password
database yes — Target catalog name
schema yes — Target schema name
host no flight.altertable.ai Flight SQL endpoint host
port no 443 Flight SQL endpoint port
tls no true Use TLS for the Flight SQL connection
compute_size no server default Compute size for all queries of the run: XS, S, M, L, XL, 2XL, 3XL, 4XL

SQL dialect

dbt models should use DuckDB-compatible SQL. Altertable executes queries via DuckDB, so all DuckDB SQL features and functions are available — see the DuckDB SQL reference.

Compatibility with dbt-duckdb

The adapter builds on dbt-duckdb: duckdb__ macros from your project and packages (dbt_utils, dbt_date, ...) are used automatically.

Incremental strategies

Strategy Notes
append Inserts new rows.
delete+insert (default) Deletes rows matching unique_key, then inserts.
merge MERGE on unique_key with dbt-duckdb's merge_* configs; at most one UPDATE or DELETE action, no merge_returning_columns.
microbatch Replaces each event_time batch; batches run one at a time.

Incremental runs stage the new rows in a temporary relation that is dropped once the run commits. Like dbt-snowflake, SQL models stage a temporary view when the strategy reads the new rows once, so they stream from the model's sources into the target without an intermediate copy, and a temporary table otherwise:

Strategy Staged as
append, merge view
delete+insert without unique_key view
delete+insert with unique_key table, so the DELETE and the INSERT read the same rows
microbatch view, or table when the model names its own table (e.g. via {{ this }})
Python models table

Set tmp_relation_type to table or view to override the choice; delete+insert with a unique_key and Python models only accept table.

Partitioning and sort order

Table and incremental models accept partitioned_by and sorted_by, applied when the table is created or fully refreshed:

{{ config(materialized='table', partitioned_by=['year(event_at)', 'country'], sorted_by=['event_at']) }}

Python models

Python table and incremental models run in the dbt process.

  • dbt.ref() and dbt.source() load the whole relation into memory as a pyarrow.Table.
  • Return anything pyarrow.table() accepts: pyarrow, pandas, polars or a DuckDB relation.
  • Run SQL with session.cursor().execute(sql).table, which returns a pyarrow.Table.

Install packages in dbt's Python environment. Pandas indexes are not written: call reset_index() to keep a groupby key.

Unsupported on Altertable

These fail with an explicit error instead of silently producing a different model:

  • indexes config
  • Contract constraints other than not_null (primary_key, unique, foreign_key, check)
  • grants config
  • external and table_function materializations
  • partitioned_by and sorted_by on Python models

Persisting model and column descriptions

When you enable persist_docs, dbt writes model and column description values to the warehouse using DuckDB’s COMMENT ON TABLE / COMMENT ON COLUMN syntax (one statement per column so Arrow Flight SQL accepts each round-trip).

Enable it in dbt_project.yml or on a model:

models:
  my_project:
    +persist_docs:
      relation: true
      columns: true

After a successful dbt run, descriptions show up on duckdb_tables() / duckdb_columns() (and therefore in dbt docs generate / catalog metadata).

Development

This project is managed with uv and hatchling.

git clone https://github.com/altertable-ai/dbt-altertable.git
cd dbt-altertable
uv sync --extra dev

Common tasks (see Makefile):

make lint        # ruff format + ruff check --fix
make typecheck   # ty check
make test        # pytest
make build       # uv build (wheel + sdist)
Integration tests

Flight SQL integration tests (for example persist_docs) run against altertable-mock in CI: the workflow builds the mock from main, starts it with --user dbt_ci:dbt_ci_secret, then runs pytest tests/integration. The default matrix job runs unit tests only (pytest --ignore=tests/integration).

Locally — Testcontainers (requires Docker; installs testcontainers via the integration extra):

ALTERTABLE_USE_TESTCONTAINERS=1 make test

make test detects that flag, runs uv sync --extra dev --extra integration, sets TESTCONTAINERS_RYUK_DISABLED=true by default (Ryuk often hangs on Docker Desktop), then runs the full pytest suite.

Or run only integration tests:

uv sync --extra dev --extra integration
export TESTCONTAINERS_RYUK_DISABLED=${TESTCONTAINERS_RYUK_DISABLED:-true}
ALTERTABLE_USE_TESTCONTAINERS=1 uv run pytest tests/integration -v

Optional overrides: ALTERTABLE_MOCK_IMAGE (default ghcr.io/altertable-ai/altertable-mock:latest), ALTERTABLE_MOCK_BOOT_USER (default dbt_ci:dbt_ci_secret, passed as --user to the mock), ALTERTABLE_MOCK_WAIT_TIMEOUT (seconds to wait for Starting Flight SQL server in logs, default 180).

If dbt run fails against the published image (for example catalog or information_schema errors), build the mock from source and point tests at it: docker build -t altertable-mock:local . then export ALTERTABLE_MOCK_IMAGE=altertable-mock:local — CI builds from main for the same reason.

Real Altertable — set the same ALTERTABLE_TEST_* variables to your Flight endpoint, catalog, and schema; do not set ALTERTABLE_USE_TESTCONTAINERS.

Optional pre-commit hooks:

uv run pre-commit install --hook-type pre-commit --hook-type commit-msg

Releases

Releases are managed via release-please — every push to main updates a rolling release PR. Merging it bumps the version, updates CHANGELOG.md, tags the release, and triggers PyPI publishing via trusted publishing.

Credits

This adapter draws on the design of dbt-duckdb.

License

MIT — see LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases dbt-altertable

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229