Skip to main content

The TimescaleDB adapter plugin for dbt

Project description

dbt logo

pdm-managed PyPI - Version PyPI - License tests

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.

dbt is the T in ELT. Organize, cleanse, denormalize, filter, rename, and pre-aggregate the raw data in your warehouse so that it's ready for analysis.

TimescaleDB

Timescale extends PostgreSQL for all of your resource-intensive production workloads, so you can build faster, scale further, and stay under budget.

dbt-timescaledb features

Hypertables

You can materialize your models as hypertables. The hypertable materialization requires you to set a time_column_name configuration option in your models. This will create a hypertable in TimescaleDB.

{{
  config(
    materialized='hypertable',
    time_column_name='time_column'
  )
}}
select current_timestamp as time_column

Continuous aggregates

There is support for a continuous_aggregate materialization. This materialization will create a continuous aggregate in TimescaleDB.

{{
  config(
    materialized='continuous_aggregate',
  )
}}
select
    count(*),
    time_bucket(interval '1 day', time_column) as bucket
from {{ ref('a_hypertable') }}
group by 2

More

Feel free to request things you're interested in by creating an issue.

The following things are planned:

  • Basic hypertable support
  • Basic continuous aggregate support
  • Configure continuous aggregate policies through dbt

Join the dbt Community

Reporting bugs and contributing code

Code of Conduct

Everyone interacting in the dbt project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the dbt Code of Conduct.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbt_timescaledb-1.7.0a2.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

dbt_timescaledb-1.7.0a2-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page