Case study · Retail & e-commerce

New till software,
new data pipeline on BigQuery.

An online-born eyewear brand was changing the till software in its shops. We rebuilt its data pipeline on BigQuery, to get its in-store sales back and prepare for what comes next.

Retail & e-commerceBigQuerydbtAirflowSFTP
About a hundredCSV files in each archive received
1export per day, dropped by the till software vendor
2sales channels: the website and the shops

THE CONTEXT

A change of till that resets the reporting.

The brand sells its glasses on its website and in its shops. It tracked its sales and shop traffic in a spreadsheet, fed by a simple data pipeline built on a Postgres database, which we had set up a few years earlier.

In 2024, it replaced the till software in its shops and brought in an ERP. The old pipeline, built around the old software, could not keep up.

The assignment: after the switch, get back the data used to analyse sales and in-store traffic. And do it on an infrastructure able to carry other uses afterwards, starting with the website data. A concrete case of modernising a data platform.

WHAT WAS IN THE WAY

A software vendor that opens up little of its data.

01

No access to the database.

The till software vendor gives neither direct access to its database nor an export to cloud storage. The only possible route: an archive dropped every day on an SFTP server.

02

Exports with no manual.

The queries that produce the exports were not shared with us. We had to work out, table by table, how the files were built.

03

A partial update that deleted too much.

The exports did not follow the announced update logic. Applying it, the load deleted too many rows: it was reworked to keep everything.

WHAT WE BUILT

From the daily drop to the sales model.

01

An SFTP server owned by the brand.

Rather than use the vendor’s server, we set one up in the brand’s Google Cloud project, with access restricted by IP address. Its data stays within its own infrastructure.

02

A connector to BigQuery.

A Python program downloads the archive, unzips it, loads the hundred or so files into BigQuery, then archives what has been processed. A typical case where you have to write your own connector.

03

dbt models.

The till software’s tables are transformed with dbt to produce the sales export the brand had specified. The scope also covers inventory, valued.

04

Airflow orchestration.

Airflow chains ingestion and transformations. A development environment is kept separate from production.

THE STACK

Everything in the brand’s cloud project.

Ingestion
SFTP server on Google CloudPython connector
Data warehouse
Transformation
dbt
Orchestration

WHAT IT CHANGES

A pipeline housed with the brand, ready to grow.

  • Till data arrives in the data warehouse every day, with no manual handling.
  • The data stays with the brand: server, data warehouse and code are in its cloud project.
  • Inventory is valued, alongside sales.
  • A foundation ready for other sources: the infrastructure was designed to take in the website data afterwards.

WHAT COMES NEXT, WE BUILD TOGETHER

Your next project
starts with a conversation.

An idea, a pain point, a project to kick off? Let’s talk about what would make a difference for your teams.

Let’s talk about your project