Skip to content

Make it mandatory to specify value_type for an entity #4670

Closed
franciscojavierarceo/feast
#9

Description

@tokoko

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

  1. tokoko commented on Oct 23, 2024

    @tokoko
    CollaboratorAuthor
  2. franciscojavierarceo commented on Oct 23, 2024

    @franciscojavierarceo
    Member

    Yeah I definitely agree with this.

  3. tmihalac commented on Oct 24, 2024

    @tmihalac
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions