Can feast support null values for an entity column? #4634
Unanswered
danbaron63
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a use case where we have a table containing features about banking transactions for users. This table contains keys for multiple entities, e.g.
Where
user_id
is an entity and so iscounterparty_id
. The records withnull
values imply that no transactions took place for that month for a given user.However this breaks feast when
null
values are supplied in an entity column. To recreate this you can run thedriver_stats
quick start but with some null values, when runningpython test_workflow.py
you will get the following error message:Does anyone have any suggestion of how we can supply
null
s to feast as entities without breaking the serialisation logic? Thanks!EDIT: I took a look at using TTL in place of null records (on the basis that after a given period a record won't be served as it is considered stale) but AFAIK this only applies to historic data and not to online serving. Could someone please correct me if I'm wrong on this though and whether TTL could be used with the online store and then we can exclude the
null
values altogether whilst still achieving the same purpose of representing that no transactions took place over a given period.Beta Was this translation helpful? Give feedback.
All reactions