Feature Store - lookback_window does not work with primary keys of "date" type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 03:39 AM
I just discovered what I believe is a bug in Feature Store. The expected value (of the "value" column) is 'NULL' but the actual value is "a". If I instead change the format to timestamp of the "date" column (i.e. removes the .date() in the generation of the date value in the feature table), the result is indeed 'NULL' as expected.
Databricks runtime: 14.3 LTS ML (includes Apache Spark 3.5.0, Scala 2.12)
The code that re-creates the issue:
```python
```
- Labels:
-
Feature Store
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 04:00 AM
Hi @Kjetil, This seems related to how date formats are handled. When you use `.date()`, it strips the time component, which might interfere with lookups.
To address this, try using the full datetime format without stripping time. Ensure your feature store and Databricks runtime are updated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 04:10 AM
Thank you for answering. Yes, that is also what I figured out. In other words the lookback_window argument only works when using timestamp format for the primary key. I cannot see that this behavior is described in the documentation.

