Reading notes from 2017; technical explanations revised November 17, 2026. Architecture and scale observations refer to the source period.

Why time is part of the key

Flint is a Spark-oriented time-series library. The interesting problem is aligning observations that do not arrive at the same timestamp. An equality join on time can miss the relationship a researcher actually wants.

Consider this illustrative quote/trade sequence:

Event Time Price
Quote A 10:00:00.100 100.00
Trade 10:00:00.150 100.02
Quote B 10:00:00.200 100.05

To study the information available at the trade, use the preceding quote, A. Joining the trade to the nearest quote without a direction constraint might choose future information and invalidate the analysis.

Questions for a temporal join

Define ordering, the grouping key, a maximum matching tolerance, and tie handling. Partitioning must preserve enough boundary information that a matching quote just outside a partition is not lost. Missing matches should be visible rather than silently replaced with arbitrary values.

The original talk was introductory. These are design implications of time-aware processing, not a trading strategy or a claim about Two Sigma’s proprietary models. Before using the library, choose compatible Spark, Scala, and Flint releases from its repository. This note does not offer an untested installation recipe.

References