You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make it mandatory to specify value_type for an entity #4670
Currently specifying a value_type for an entity is optional. value types are instead inferred during an online call with a this function that basically goes through all the feature views and checks actual data types where a specific entity is used. This is obviously not very performant.
The possible reason for this design is to allow the same entity to have different types in different feature views (although now this is not allowed anyway). I think even that goal is a bit dubious, making joins across values with different data types could lead to many corner cases and bugs. I think we should instead make it mandatory to specify a value type when the user applies an entity and also make sure that data types align when actual feature views reference entities.
This will obviously be a breaking change, but I think the one that can be rectified easily. Maybe we can add DeprecationWarning in the next release saying that entities must have a type and make it mandatory in the release after that.
Activity
tokoko commentedon Oct 23, 2024
@franciscojavierarceo @HaoXuAI
franciscojavierarceo commentedon Oct 23, 2024
Yeah I definitely agree with this.
tmihalac commentedon Oct 24, 2024
@franciscojavierarceo @tokoko Can you elaborate a bit more? I want to fix this issue
feat: Make entity value_type mandatory with deprecation warning
chore: Issue warning announcing entity's value_type as mandatory (#4833)
chore: Skip tests on doc updates (#4834)