-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Change internal references from input to batch_source #1729
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1729 +/- ##
===========================================
- Coverage 79.06% 61.77% -17.30%
===========================================
Files 80 78 -2
Lines 6849 6762 -87
===========================================
- Hits 5415 4177 -1238
- Misses 1434 2585 +1151
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
711dfc8
to
03f557e
Compare
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
03f557e
to
7713a9a
Compare
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 |
/retest |
batch_source: Optional[DataSource] = None, | ||
stream_source: Optional[DataSource] = None, | ||
features: List[Feature] = None, | ||
tags: Optional[Dict[str, str]] = None, | ||
online: bool = True, | ||
): | ||
warnings.warn( |
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.
@felixwang9817 Should we warn users only when the input
is assigned ?
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.
@tedhtchang That's a good point, I think ideally we would have done that. However, given that (a) input
was a required parameter before this change, so almost all users will continue to use input
, and (b) releases are fairly frequent so this deprecation warning will soon become outdated, I think we can leave this change as is.
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.
@tedhtchang btw, I managed to insert this change into a separate PR (#1746). Thanks for pointing this one out!
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.
@felixwang9817 Thanks. Looks good.
Signed-off-by: Felix Wang [email protected]
What this PR does / why we need it: FeatureViews have always required a batch data source as input; this argument is currently named
input
. We recently introduced stream sources here, so now we have three arguments: a requiredinput
, an optionalbatch_source
, and an optionalstream_source
. We should removeinput
as an argument, makebatch_source
required, and leavestream_source
optional; this is a breaking change, so we prepare for it by adding a deprecation warning. We also change internal references and docs to usebatch_source
instead ofinput
, to point people in the right direction.Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: