Skip to content

Commit

Permalink
fix example pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Aug 13, 2024
1 parent 289b63c commit 779bca6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions composable_pipeline_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ def o():

print("RUNNING LOCAL SNAPSHOT EXTRACTION")
lake_pipeline.run(
duck_pipeline.dataset().customers.iter_df(),
loader_file_format="jsonl",
duck_pipeline.dataset().customers.iter_df(500),
loader_file_format="parquet",
table_name="customers",
write_disposition="replace",
)
lake_pipeline.run(
duck_pipeline.dataset().sql(
"SELECT * FROM orders WHERE orders.order_day = 'tuesday'"
).iter_df(),
loader_file_format="jsonl",
).iter_df(500),
loader_file_format="parquet",
table_name="orders",
write_disposition="replace",
)
Expand All @@ -100,8 +100,8 @@ def o():
"SELECT orders.*, customers.name FROM orders LEFT JOIN customers ON"
" orders.customer_id = customers.id"
),
).iter_df(),
loader_file_format="jsonl",
).iter_df(500),
loader_file_format="parquet",
table_name="customers",
write_disposition="replace",
)
Expand Down

0 comments on commit 779bca6

Please sign in to comment.