Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it mandatory to specify value_type for an entity #4670

Open
tokoko opened this issue Oct 23, 2024 · 3 comments
Open

Make it mandatory to specify value_type for an entity #4670

tokoko opened this issue Oct 23, 2024 · 3 comments

Comments

@tokoko
Copy link
Collaborator

tokoko commented Oct 23, 2024

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.

@tokoko
Copy link
Collaborator Author

tokoko commented Oct 23, 2024

@franciscojavierarceo
Copy link
Member

Yeah I definitely agree with this.

@tmihalac
Copy link
Contributor

@franciscojavierarceo @tokoko Can you elaborate a bit more? I want to fix this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants