Skip to content

Commit

Permalink
Improve local python execution, executepython materialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsimsek committed Dec 7, 2024
1 parent 1b88c91 commit a0c4dc2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies = [
]
[project.optional-dependencies]
airflow = ["apache-airflow"]
test = ["testcontainers>=3.7,<4.9", "apache-airflow", "pylint"]
test = ["testcontainers>=3.7,<4.9", "apache-airflow", "pylint", "dlt[duckdb]"]

[tool.setuptools]
include-package-data = true
Expand Down
11 changes: 11 additions & 0 deletions tests/resources/dbttest/models/my_dlt_import_model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@dlt.resource(
columns={"event_tstamp": {"data_type": "timestamp", "timezone": False}},
primary_key="event_id",
)
def events():
yield [{"event_id": 1, "event_tstamp": "2024-07-30T10:00:00.123+00:00"}]


def model(dbt, session):
print(session)
print(type(session))

0 comments on commit a0c4dc2

Please sign in to comment.