About this lab
You are a data engineer at a rapidly scaling e-commerce platform processing tens of thousands of orders daily across multiple categories and regions. The analytics team needs daily batch processing to calculate customer lifetime value, identify top sellers, and detect revenue trends. The current approach is a tangle of manual SQL scripts that break constantly and take hours to maintain.
In this lab, you will replace that mess with an end-to-end batch pipeline using Snowpark Python. You will write Python transformations that run natively inside Snowflake, deploy them as Stored Procedures, and orchestrate the full pipeline with Scheduled Tasks. Orders go in, customer metrics and sales aggregations come out, all running on Snowflake compute without moving data off-platform.
Lab details
- Level: Intermediate
- Cloud: Snowflake
- Domain: Data Engineering
- Duration: 90 minutes
What you will learn
- Write Snowpark DataFrames to perform complex batch transformations on e-commerce data
- Create reusable Python functions for business logic (CLV calculation, product ranking, revenue aggregation)
- Deploy Snowpark code as Stored Procedures for production execution
- Build a multi-step batch pipeline with staging, transformation, and presentation layers
- Schedule automated pipeline execution using Snowflake Tasks with CRON expressions
- Implement task chaining to orchestrate dependent transformation steps
Concepts covered
- Batch data processing using Snowpark Python
- Pipeline orchestration with Snowflake Tasks
- Customer analytics and segmentation
Technologies used
- Snowpark Python
- Snowflake Tables
- Stored Procedures (Python)
- Snowflake Tasks
- Snowflake Stages
Prerequisites
- Active Snowflake account (Trial account is sufficient)
- Basic Python programming knowledge (functions, loops, dataframes concept)
- Familiarity with SQL and relational database concepts
- Understanding of batch processing and ETL concepts
- No prior Snowpark experience required — the lab covers setup from scratch
Topics
- Snowflake
- Snowpark
- Python
- Scheduled Tasks