JT / SAGE IDEAS Work with me

Lab · Data engineering

Ask the data what it knew then.

Every row in a point-in-time table carries two clocks: when a value was true, and when we knew it. Drag the date and watch yesterday's answer stop matching today's.

Data Lab

data-lab / as-of
  • Real SQLite
  • Simulated data

Starting SQLite in a worker…

What this is

A small SQL playground over a made-up set of company filings, built the way the point-in-time data platform design says it should be: raw feeds, then a clean layer where every revision is a new row, then derived analytics. The headline lesson is the lookahead trap: a number you read today may have been restated since, so a test run on today's table quietly uses information nobody had yet.

Real vs simulated

  • Real

    SQLite (the sql.js build, compiled to WebAssembly) executes every query in a Web Worker in your browser. The clean and analytics tables are built by the SQL shown in the Layers panel, from the raw tables. The free SQL box accepts one SELECT or WITH statement, caps results at 200 rows, stops after 2 seconds, and the database itself is opened read-only. The job-health verdicts use a JavaScript port of the production rule (rows written, chunk finished, provider error).

  • Simulated

    All companies, filings and numbers are invented. This is not market data. Job runs, SLAs and load times are authored values against a fixed pipeline clock (2026-02-20 06:00 UTC); there is no scheduler. The production design uses DuckDB and Parquet; this is SQLite in WASM, so dialect details differ. The design has four layers (raw, clean PIT, metric store, serving); here the metric store is shown as "Analytics" and serving is not modelled.

What this does not prove

It does not show that any production pipeline is correct, fast on real volumes, or running on a schedule. It shows only that the point-in-time convention and the as-of join behave as described, on about 140 invented rows.

The design behind it, with its limits stated, is in the case study: A point-in-time data platform design.

Have a system that needs to work?

Tell me the problem. I will tell you honestly whether I am the right engineer for it.

Book a 15-minute call Run a free audit Not sure what you need? Answer 3 questions