Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compat with latest master #36

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hooli_data_eng/assets/dbt_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from dagster._utils import file_relative_path
from dagster_dbt import load_assets_from_dbt_project
from dagster_dbt.asset_decorator import dbt_assets
from dagster_dbt.cli import DbtCli, DbtManifest
from dagster_dbt.core import DbtCli, DbtManifest
from dagster import AssetKey, DailyPartitionsDefinition, WeeklyPartitionsDefinition, OpExecutionContext, Output
from dateutil import parser
import json
Expand Down Expand Up @@ -78,7 +78,7 @@ def _process_partitioned_dbt_assets(context: OpExecutionContext, dbt2: DbtCli):
for dagster_event in event.to_default_asset_events(manifest=manifest):

if isinstance(dagster_event, Output):
event_node_info = event.event["data"]["node_info"]
event_node_info = event.raw_event["data"]["node_info"]

started_at = parser.isoparse(event_node_info["node_started_at"])
completed_at = parser.isoparse(event_node_info["node_finished_at"])
Expand Down
2 changes: 1 addition & 1 deletion hooli_data_eng/resources/dbt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dagster_dbt.cli import DbtCli
from dagster_dbt.core import DbtCli
from dagster_dbt.asset_decorator import DbtManifest
from typing import List, Optional
from dagster import OpExecutionContext
Expand Down