Skip to content

Commit 0b03236

Browse files
zqzq0422ntkathole
authored andcommitted
docs: Clarify the initial incremental materialization window
Signed-off-by: chloe <823083779@qq.com>
1 parent 213a130 commit 0b03236

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎docs/getting-started/quickstart.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ print(training_df.head())
501501
{% endtabs %}
502502
### Step 6: Ingest batch features into your online store
503503

504-
We now serialize the latest values of features since the beginning of time to prepare for serving. Note, `materialize_incremental` serializes all new features since the last `materialize` call, or since the time provided minus the `ttl` timedelta. In this case, this will be `CURRENT_TIME - 1 day` (`ttl` was set on the `FeatureView` instances in `feature_definitions.py`).
504+
We now serialize the latest values of features from the materialization window to prepare for serving. `materialize-incremental` starts from each feature view's most recent materialization end date. On the first run, it starts from the current time minus the feature view's `ttl`. In this example, the initial lookback is one day (`ttl` was set on the `FeatureView` instances in `feature_definitions.py`).
505505

506506
{% tabs %}
507507
{% tab title="Bash (with timestamp)" %}

‎docs/reference/feast-cli-commands.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ driver_hourly_stats:
298298

299299
## Materialize incremental
300300

301-
Load data from feature views into the online store, beginning from either the previous `materialize` or `materialize-incremental` end date, or the beginning of time.
301+
For regular (non-on-demand) feature views, load data into the online store beginning from each feature view's most recent materialization end date.
302+
303+
For a regular feature view with no previous materialization, the start date is the current time minus its `ttl`. A zero TTL uses a lookback of 52 weeks; a feature view with no TTL must first be materialized with `feast materialize` to establish a start date. The initial lookback is relative to the current time, rather than the supplied end timestamp.
302304

303305
```text
304306
feast materialize-incremental 2022-01-01T00:00:00

0 commit comments

Comments
 (0)