1. 학습
  2. /
  3. 강의
  4. /
  5. Scaling and Optimizing Data Pipelines with Polars

Connected

연습 문제

Sinking a cleaned extract to Parquet

Back to the Seattle library data. The team has a cleaned-up checkout extract they want to write to Parquet for downstream tools, but they don't want to materialize the whole thing in memory first. Write the lazy query straight to disk.

clean_checkouts is preloaded, along with the export path CLEAN_EXPORT_PATH.

지침

100 XP
  • Write clean_checkouts to CLEAN_EXPORT_PATH directly from the lazy query.
  • Set the row group size to 5,000.
  • Use the streaming engine.