QuestionQ103

VerifiedAdvanced Feature Store Concepts

A Data Scientist is developing a predictive-maintenance model for a vehicle fleet. They have two tables in their feature store:

  1. A sensor_readings feature table containing continuously streamed IoT data (for example, engine_temp and oil_pressure). This is a time-series table with vehicle_id as a primary key and ts as a timestamp key.
  2. A maintenance_logs ground-truth table that records when a vehicle component failed. This table contains vehicle_id and the exact failure_ts timestamp.

The objective is to create a training dataset by joining sensor_readings with maintenance_logs to train a model that predicts failures. They need to join the feature data and ground-truth data in a way that ensures point-in-time correctness and prevents data leakage during model training.

Which approach accomplishes this?

Explanation

An AS OF join matches each failure event to the latest sensor-feature values for the same vehicle_id whose timestamp is at or before failure_ts. Restricting the lookup to values available at that time preserves point-in-time correctness and prevents future sensor readings from leaking into training data. Databricks documents that time-series feature-table lookups use an AS OF join to retrieve the most recent feature values at the label timestamp.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!