Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

dlt → VeloDB

Minimal working dlt append pipeline for VeloDB Cloud / Apache Doris. It is ready to deploy to dltHub: __deployment__.py exposes the load_to_velodb pipeline decorated with @run.pipeline.

Run

uv sync
export VELODB_URL='doris+pymysql://<user>:<password>@<host>:9030/<database>'
uv run pipeline.py

Explore the loaded data

After the pipeline has completed at least one load, start the interactive Marimo demo:

uv run marimo edit notebook.py --no-token

The notebook attaches to the dlt_to_velodb pipeline and shows the available tables, an events preview, and the generated pipeline schema. It defaults to the prod workspace profile, so it reads the corresponding values from .dlt/prod.secrets.toml; explicit VELODB_URL / VELODB_DATASET environment variables or WORKSPACE__PROFILE override that default.

Deploy to dltHub

Deploy this repository as a dltHub workspace. The deployment discovers __deployment__.py and registers load_to_velodb as the runnable pipeline.

Set these encrypted dltHub profile secrets before the first run (the deployed job uses the prod profile):

  • velodb_url (required): doris+pymysql://<user>:<password>@<host>:9030/dlt_demo
  • velodb_dataset (optional): target VeloDB database; defaults to dlt_demo

The URL must include a database path (for example, /dlt_demo), even though velodb_dataset determines the dlt dataset. For a local run, the equivalent environment variables are VELODB_URL and VELODB_DATASET.

Keep credentials out of the repository; locally, put the lowercase secret names in .dlt/secrets.toml or use the environment variables.

The database user needs database privileges (CREATE, ALTER, LOAD, SELECT, and DROP) and compute-group access. For VeloDB Cloud:

GRANT USAGE_PRIV ON COMPUTE GROUP initial_cluster TO '<user>'@'%';

pipeline.py adds the Doris-specific DDL dlt needs: DUPLICATE KEY and DISTRIBUTED BY HASH. It is intentionally limited to append loads. Use a dedicated destination implementation for merge/SCD2 or workload-specific table design.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages