github dlt-hub/dlt 1.33.0

one hour ago

dlt 1.33.0 Release Notes

Behavioral Changes

Caused by bug fixes

  1. Follow-up SQL jobs run in a transaction (#4720 @rudolfix) — Merge, scd2, upsert and replace from staging were not atomic on duckdb, motherduck, ducklake, snowflake and bigquery. On bigquery a concurrent load of the same table fails and is retried after 5 s instead of waiting in a queue. Set use_transactions_for_sql_jobs=False to turn transactions off.
  2. run() finishes a pending package abort before it extracts (#4723 @rudolfix)
  3. A nested table whose write disposition does not match its root raises SchemaCorruptedException (#4585 @RahulkumarRV) — Before, a merge nested table under a replace or append root left its rows in the staging dataset. Give the nested table a primary key to decouple it.
  4. The sql_database pyarrow backend loads json documents as they are (#4709 @rudolfix) — scd2 tables that hash such columns re-version their rows once after the upgrade.
  5. ibis expressions on a dataset return tz-aware timestamps (#4703 @rudolfix)
  6. qdrant without a dataset name truncates on replace and refresh="drop_data" (#4546 @Goodnight77) — Before, it appended to the old data.
  7. A decimal column with precision and no scale gets scale 0, like in SQL (#4653 @rudolfix) — Before, new columns got the default scale of the destination. A scale without precision is ignored.
  8. snowflake returns an empty arrow table for an empty result (#4725 @rudolfix) — Before, it returned None.

Caused by new features

  1. dlt init no longer updates a verified source that is already in the project (#4714 @rudolfix) — It fails and points to dlt init <source> --update / dlthub pipeline update <source>.

Highlights

  • Update verified sources and keep your changes (#4714, #4708 @rudolfix)
    • dlthub pipeline update <source> and dlt init <source> --update update only the files of the source, not config, secrets or pipeline scripts.
    • Local edits are merged three-way. You resolve conflicts with --on-conflict keep-current | keep-incoming | skip.
    • dlthub pipeline update -l lists installed sources with their installed and newest versions.
  • Atomic, retry-safe follow-up jobs (#4720 @rudolfix) — Merge, scd2, upsert and replace from staging no longer leave empty or half-updated tables when a job fails or the loader crashes.
  • Retries for dltHub jobs (#4690, #4651 @schrodervictor) — @run.job, @run.pipeline and @run.agent take retry=3 or a full policy with delays and backoff. Launchers exit with code 75 on connection and timeout errors.
  • DuckDB 2 (#4600 @Travior) — The duckdb and ducklake extras accept DuckDB 2. motherduck stays on 1.x until MotherDuck supports it.
  • New ServiceNow and SharePoint verified sources (dlt-hub/verified-sources#727 @rudolfix, dlt-hub/verified-sources#721 @anuunchin)
    • servicenow_table loads any table from the Table API or the CSV export, merges changes incrementally with deletes, and reads large tables in parallel.
    • sharepoint_list syncs lists with Graph delta queries. sharepoint_files reads csv, jsonl, parquet and excel files from document libraries.
  • kafka: typed messages with the Schema Registry (dlt-hub/verified-sources#733 @rudolfix) — JsonProcessor and AvroProcessor take column types from the registry. Credentials cover SASL, mTLS, OAuth, Azure Event Hubs and Amazon MSK IAM.

Core Library

  • dlthub init in existing projects (#4653 @rudolfix) — It asks first, then adds missing .gitignore entries and dependencies. --overwrite replaces the scaffold.
  • AI harness for Cortex Code (#4653 @rudolfix) — Toolkits can be visible per agent and can add or remove MCP feature groups.
  • Snowflake connection_name and Snowpark containers (#4653 @rudolfix) — dlt picks a connection from connections.toml and reads the session token in a Snowpark container. dbt gets the real credentials.
  • Lineage failures name the query sources and the resource (#4653 @rudolfix)
  • LoadInfo.has_data (#4725 @rudolfix) — It is True when any load package loaded a data table, and False when only dlt tables were loaded.
  • Update verified sources: see Highlights (#4714, #4708 @rudolfix)
  • Atomic follow-up jobs: see Highlights (#4720 @rudolfix)
  • Retries for dltHub jobs: see Highlights (#4690, #4651 @schrodervictor)
  • DuckDB 2: see Highlights (#4600 @Travior)
  • DuckDB reads gs:// natively (#4625 @rudolfix) — ducklake, filesystem datasets and iceberg scan GCS about 3x faster, and tokens are refreshed on long-lived connections. Filesystem datasets on gs:// work in cross-destination joins.
  • Filesystem {noext} placeholder (#4639 @Travior) — Writes files named after tables without an extension (#4402).
  • Fix: interrupted package aborts finish without losing data (#4723 @rudolfix) — The next run resumes the abort, so the incremental state is rewound and the aborted rows load again.
  • Fix: the destination sync keeps the pending packages of a pipeline that never reached the destination (#4723 @rudolfix)
  • Fix: snowflake no longer commits the deletes of a merge before its inserts run (#4720 @rudolfix)
  • Fix: a retried snowflake atomic swap, clickhouse staging-optimized replace or athena iceberg append no longer swaps a table back or copies it twice (#4720 @rudolfix)
  • Fix: mssql reports failed statements of a batch, and staging-optimized replace no longer deadlocks with other jobs of the load (#4720 @rudolfix)
  • Fix: add_limit cuts off the extract pipe (#4626 @rudolfix) — Items past the limit no longer advance the incremental cursor.
  • Fix: parallelized resources run on the extract pool also when called with arguments (#4653 @rudolfix)
  • Fix: dlt.current returns the running resource, its source and its state in parallel and async resources (#4653 @rudolfix)
  • Fix: with_table_name marks work on resources with dynamic hints or a table_name hint, in select_tables and in table variants (#4653 @rudolfix)
  • Fix: Arrow incremental keeps newer rows that share a primary key with a boundary row (#4685 @industriverse)
  • Fix: Arrow batches without cursor values no longer close the source or move the incremental range (#4722 @rudolfix)
  • Fix: Arrow dlt columns and empty primary key dedup (#4721 @rudolfix)
  • Fix: overriding a default incremental keeps range_start, range_end and on_cursor_value_missing (#4483 @developer-rpai)
  • Fix: the sql_database pyarrow backend no longer pads json documents with keys of other rows (#4709 @rudolfix, fix by @tushar-mahalya) — This was a regression since 1.16.0.
  • Fix: decimal and wei precision resolve like SQL in tables and arrow schemas (#4653 @rudolfix)
  • Fix: tables with the _dlt prefix are kept when the naming convention changes (#4653 @rudolfix)
  • Fix: schema diagrams find dlt tables under any naming convention (#4653 @rudolfix)
  • Fix: Relation.where() coerces values to the column type and keeps timestamp timezones (#4703 @rudolfix)
  • Fix: Dataset.row_counts() returns no rows instead of failing when no table is selected (#4725 @rudolfix)
  • Fix: snowflake returns an empty arrow table with the result columns for an empty result (#4725 @rudolfix)
  • Fix: multi-file iceberg, delta and lance loads on filesystem keep columns that first appear in later files (#4680 @TejasLamba2006)
  • Fix: mismatched nested table merge dispositions no longer lose data (#4585 @RahulkumarRV)
  • Fix: refresh no longer creates an empty staging dataset (#4665 @zilto) — Dropping tables needs no CREATE SCHEMA permission.
  • Fix: dropping tables works when the staging dataset has no version table (#4631 @sdebruyn)
  • Fix: SQL clients, connection pools and engines are freed without a garbage collector pass (#4653 @rudolfix)
  • Fix: support qdrant-client 1.19+ (#4546 @Goodnight77)
  • Fix: lancedb stores a null vector for texts without an embedding (#4653 @rudolfix)
  • Fix: vault config providers no longer report existing secrets as missing under concurrent lookups (#4444 @sdebruyn)
  • Fix: --branch of dlt init and dlthub ai checks out existing branches in sparse clones (#4653 @rudolfix) — Fixes #4660.
  • Fix: source version checks keep the prerelease policy of the requirement (#4619 @chenyujia1024)
  • Fix: --non-interactive consistently skips opening the browser in serve commands (#4603 @schrodervictor)
  • Fix: deployments resolve local file:// installs on Windows and Python 3.14 (#4653 @rudolfix)
  • Fix: the AI agent gives the workspace MCP server 60 s to start (#4638 @nanjeshramesh)

Verified Sources

Docs

Chores

New Contributors

Don't miss a new dlt release

NewReleases is sending notifications on new releases.