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

fix so databricks pipes doesnt fail io manager #47

Merged
merged 1 commit into from
Oct 24, 2023
Merged
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
7 changes: 4 additions & 3 deletions hooli_data_eng/assets/forecasting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
Int,
Config,
AssetExecutionContext,
MaterializeResult
)
from dagstermill import define_dagstermill_asset
from dagster._utils import file_relative_path
Expand Down Expand Up @@ -177,11 +178,11 @@ def big_orders(context, predicted_orders: pd.DataFrame):
# or use that upstream Snowflake table, it is used here for illustrative purposes
@asset(
deps=[predicted_orders],
compute_kind="databricks"
compute_kind="databricks",
)
def databricks_asset(
context: AssetExecutionContext, pipes_client: PipesDatabricksClient
):
) -> MaterializeResult:
# cluster config
cluster_config = {
"num_workers": 1,
Expand Down Expand Up @@ -216,4 +217,4 @@ def databricks_asset(
task=task,
context=context,
extras=extras,
).get_results()
).get_materialize_result()
Loading