-
Notifications
You must be signed in to change notification settings - Fork 996
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
Handle case where_LIST
type is empty
#1703
Conversation
Hi @judahrand. Thanks for your PR. I'm waiting for a feast-dev member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Fixes an issue mentioned in #1640 but not the whole issue as this does not deal with int lists. |
Thanks @judahrand, should we perhaps add a test to ensure that the change you've introduced works? |
Codecov Report
@@ Coverage Diff @@
## master #1703 +/- ##
==========================================
- Coverage 62.29% 62.09% -0.21%
==========================================
Files 96 96
Lines 7363 7424 +61
==========================================
+ Hits 4587 4610 +23
- Misses 2776 2814 +38
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
a1d4bba
to
e62b248
Compare
0817952
to
32db194
Compare
Hey @woop. Took me a while to get to this but it is easier now that the tests have been reworked a tad. Added the test you asked for. Worth revisiting? |
32db194
to
696a5a6
Compare
b4975e6
to
b58c8c4
Compare
Wanted to go back and get the integration tests to run with the code from Looks like I need approval to run them again... @achals |
I think you might have to unlabel and re-label |
Hmmm... Maybe I'm wrong... Any idea why the integration tests are skipping? |
Re What are the downsides to relaxing the null constraint on inference in this method? It seems relatively normal to have some feature values be null / empty e.g. a user history feature for a new user. |
What would you suggest it should return? |
eafb0ff
to
e12fb63
Compare
I think [120, null, 1, 3, 4], I'd expect that to still infer to an int list that we'd want to support. There's likely downstream effects of asserting that though, though I think the only real store we "support" right now is BQ and materialization crashes there (#1839) |
Agreed.
Yup, that's the approach I'm trying here: infer type from all the data provided rather than infer a type for each piece of data alone. This'll still fail in the case where all the data is empty lists (or all Should we not be inferring types from the schema rather than the data really? |
Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
f7368ee
to
61b40ec
Compare
Tests pass! Actually, for realz ready to be reviewed now @adchia |
Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
sdk/python/tests/integration/registration/test_universal_types.py
Outdated
Show resolved
Hide resolved
sdk/python/tests/integration/registration/test_universal_types.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
Flakey test.... Seen it flake before. |
Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
Signed-off-by: Judah Rand <17158624+judahrand@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adchia, judahrand The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This PR deals with multiple issues around empty list features regarding type inference.
It is my opinion that these fixes should be somewhat of a stop gap and that really the way that types are dealt with should be overhauled in Feast.
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: