-
Notifications
You must be signed in to change notification settings - Fork 996
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle case where
_LIST
type is empty (#1703)
* Add test for empty `list` Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Refactor how types are tested Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Test the type of all elements in list features Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Fix issue with empty list features Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Remove `python_type_to_feast_value_type` from use in tests Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Infer type from all data Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Add one non-empty element to empty list test datasets Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Accept empty lists in tests Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Use `ValueType.UNKNOWN` instead of `None` Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Handle mix of `null` and `non-null` values better Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Handle entity row type inference when Protobuf values used Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Fix typo Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Make test config generate more clear Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Add TODO Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Be more strict about online entity type consistency Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Rename variable to be more precise Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com> * Add `TODO: Add test where all lists are empty` Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
186 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.