-
Notifications
You must be signed in to change notification settings - Fork 999
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
chore: Rename inputs parameter to sources for on demand feature views #2442
Conversation
there are some conflicts with Go, so I will hold this PR until #2429 is merged |
sdk/python/feast/go_server.py
Outdated
from tenacity import retry, stop_after_attempt, stop_after_delay, wait_exponential | ||
|
||
import feast | ||
import grpc |
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.
you may need to delete the feast/grpc
subdir
elif isinstance(odfv_input, FeatureViewProjection): | ||
self.input_feature_view_projections[input_ref] = odfv_input | ||
if inputs and sources: | ||
raise ValueError("At most one of `inputs` or `sources` can be specified.") |
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.
nit, I would say one of 'sources' or 'inputs'
and put sources
first.
inputs: Optional[ | ||
Dict[str, Union[FeatureView, FeatureViewProjection, RequestDataSource]] | ||
] = None, |
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.
I think making this a kwarg
from an arg
is a backwards incompatibile change. e.g.
ODFV(
"my name",
[...],
{"input1": some_feature_view}
)
will no longer be valid. Are you thinking that this is okay because it's experimental?
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.
reordering parameters so that this doesn't break
Codecov Report
@@ Coverage Diff @@
## master #2442 +/- ##
==========================================
+ Coverage 58.45% 58.47% +0.02%
==========================================
Files 126 126
Lines 10780 10789 +9
==========================================
+ Hits 6301 6309 +8
- Misses 4479 4480 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
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: achals, felixwang9817 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 |
…feast-dev#2442) * Rename `inputs` parameter to `sources` for odfv Signed-off-by: Felix Wang <[email protected]> * Address CR comments Signed-off-by: Felix Wang <[email protected]> * Fix Go references to ODFV proto Signed-off-by: Felix Wang <[email protected]> * Fix tests Signed-off-by: Felix Wang <[email protected]> * Fix Java Signed-off-by: Felix Wang <[email protected]> * Fix Java again Signed-off-by: Felix Wang <[email protected]> * Fix Python integration tests Signed-off-by: Felix Wang <[email protected]> Signed-off-by: joostvan <[email protected]>
What this PR does / why we need it: This PR renames the
inputs
parameter tosources
for odfvs.Which issue(s) this PR fixes:
Fixes #