Skip to content

Commit

Permalink
Merge pull request #11 from EJOOSTEROP/updt_dickdb_versionb
Browse files Browse the repository at this point in the history
Ready for DuckDB v1 (and MotherDuck)
  • Loading branch information
EJOOSTEROP authored Aug 3, 2024
2 parents 5d6b711 + 1f2aefb commit 8e8da1e
Show file tree
Hide file tree
Showing 9 changed files with 608 additions and 230 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
<!-- insertion marker -->
## [Unreleased]

## [0.X] 2024-08-02
### Changed
- POSSIBLE BREAKING CHANGE: Update dbt to accommodate DuckDB v1.0. Rewquires newer versions of DuckDB,
- Create new pipeline version/name

## [0.4.6] 2024-03-03
### Added
- Release version for sentry.io
Expand Down
340 changes: 119 additions & 221 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ disallow_incomplete_defs = true

[tool.poetry]
name = "ternyxmimosa"
version = "0.4.6"
version = "0.5.0"
description = "A minimal modern data stack with working data pipelines in a single Docker container."
authors = ["Erik Oosterop <[email protected]>"]
license = "MIT"
Expand All @@ -33,7 +33,7 @@ packages = [ { include = "mimosa", from = "src" } ]
python = ">=3.11,<3.13"
python-dotenv = "^1.0.0"
loguru = "^0.7.2"
pandas = "2.0.3"
pandas = "^2.2.2"
streamlit = "^1.26.0"
dlt = {extras = ["cli", "filesystem", "motherduck", "parquet"], version = "^0.4.4"}
sentry-sdk = "^1.40.6"
Expand Down
5 changes: 5 additions & 0 deletions src/mimosa/dbt/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ clean-targets:
- "target"
- "dbt_modules"

# The following causes an error. Not certain how these yml files are updated in dbt venv.
#flags:
# send_anonymous_usage_stats: False
# use_colors: True

# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models

Expand Down
3 changes: 0 additions & 3 deletions src/mimosa/dbt/profiles.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# https://docs.getdbt.com/docs/core/connect-data-platform/connection-profiles
config:
send_anonymous_usage_stats: False
use_colors: True
gei:
#target: "{{ env_var('MELTANO_ENVIRONMENT', 'dev') }}"
target: "dev"
Expand Down
4 changes: 2 additions & 2 deletions src/mimosa/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, destination="motherduck"):
self.timing_key = "gasDayStart"
self.primary_key = ("gasDayStart", "code")

self.pipeline_name = "gas_storage"
self.pipeline_name = "gas_storage_v2"
# credentials for the destination may be required
self.destination = destination # "duckdb" "motherduck"
logger.info(f"Using destination: {self.destination}")
Expand Down Expand Up @@ -168,7 +168,7 @@ def run_reporting_pipeline(self):
logger.debug("Starting to obtain a dbt venv.")
venv = dlt.dbt.get_venv(pipeline)
venv.run_module(
"pip", "install", "duckdb==0.9.2"
"pip", "install", "dbt-duckdb"
) # TODO: this does not always need to be a fixed version (20230926)

# get runner, optionally pass the venv
Expand Down
Loading

0 comments on commit 8e8da1e

Please sign in to comment.