From Raw Clickstream to Clean Datasets: How We Cook Data at Lamoda Tech

Dana Zlochevskaya, Mikhail Nesterov2 Jul 2025

Problem

In an e-commerce company with more than 100 data users, every team prepared data "for itself", in its own format and place. The same transformations ran in different pipelines, understanding someone else's dataset meant reading the whole Airflow DAG, and each new ML product or experiment spent more time on data "warm-up". The clickstream, a Hive table of more than 50 TB with almost raw JSON, had no per-event access, no monitoring and a frequently changing structure.

Example from the article: Lamoda Tech (3.5 PB of data, hundreds of daily ETL processes, dozens of ML pipelines in production) built Feature Storage and then Action Storage on Spark.

Solution in brief

Every intermediate dataset is saved as a Feature Set with a mandatory key and version, computed by its own Airflow DAG and partitioned the same way everywhere. Raw clickstream is first turned into versioned per-event Action tables by event classes that reuse versioned attribute parsers and are checked with PyDeequ.

Questions this case answers
  • How to replace per-team ad-hoc data preparation with a shared, versioned dataset layer that many ML and analytics pipelines reuse
  • How to split a large raw event log with changing schema into per-event typed tables with validation and side-by-side versions
  • How to stop every team preparing its own copy of the same datasets and features?
  • How to turn a raw nested-JSON clickstream table into isolated, versioned, validated event tables?

Tools and methods

  • Feature Storage — in-house PySpark package that saves a DataFrame to HDFS as a keyed, versioned Feature Set.
  • Action Storage — event layer: one table and one handler class per event type.
  • Apache Spark, Apache Airflow, Apache Hive, Apache Hadoop — processing, orchestration, storage.
  • PyDeequ — data quality checks configured in Airflow.
  • OpenMetadata — data catalog (being rolled out).
Continue reading — it's free

Google or a one-time email code. No password.