This commit is contained in:
2025-07-26 19:53:13 +02:00
parent 329a50a5d6
commit d55cb8fb17
2 changed files with 5 additions and 4 deletions

View File

@@ -205,8 +205,11 @@ def new_deals(
)
new_df = df_after.join(df_before.select("id"), on="id", how="anti").collect()
if not new_df.height:
if new_df.height:
context.log.info(f"New deals found ({new_df.height}x)!")
yield dg.Output(Deal.DataFrame(new_df))
else:
context.log.info("No new deals found!")
@dg.asset(