Real-Time and Batch: Feature Engineering with Hamilton + Narwhals
summary
Combines Apache Hamilton and Narwhals so feature transformations are defined once and run unchanged in both low‑latency FastAPI endpoints and large-scale backfills; uses Polars for realtime, IBIS/DuckDB/Snowflake for batch, and pushes heavy aggregation down into the warehouse to avoid copying data. Hamilton swaps IO implementations per mode and prunes its DAG to only execute requested feature sets, while Narwhals compiles Polars‑style expressions to many engines with minimal Narwhals overhead and enables SQL pushdown to Snowflake for scalable, consistent training data.
AI-written summary · about
