Skip to content

Change internal references from input to batch_source - #1729

Merged
feast-ci-bot merged 4 commits into
feast-dev:masterfrom
felixwang9817:deprecate_input
Jul 27, 2021
Merged

Change internal references from input to batch_source#1729
feast-ci-bot merged 4 commits into
feast-dev:masterfrom
felixwang9817:deprecate_input

Conversation

@felixwang9817

@felixwang9817 felixwang9817 commented Jul 22, 2021

Copy link
Copy Markdown
Collaborator

Signed-off-by: Felix Wang wangfelix98@gmail.com

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 required input, an optional batch_source, and an optional stream_source. We should remove input as an argument, make batch_source required, and leave stream_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 use batch_source instead of input, to point people in the right direction.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

There is now a deprecation warning in FeatureView.

Comment thread sdk/python/feast/feature_view.py Outdated
@codecov-commenter

codecov-commenter commented Jul 22, 2021

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 93.75000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.07%. Comparing base (bf557bc) to head (cd0c62d).
⚠️ Report is 2708 commits behind head on master.

Files with missing lines Patch % Lines
sdk/python/feast/repo_operations.py 0.00% 2 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1729   +/-   ##
=======================================
  Coverage   79.06%   79.07%           
=======================================
  Files          80       80           
  Lines        6849     6852    +3     
=======================================
+ Hits         5415     5418    +3     
  Misses       1434     1434           
Flag Coverage Δ
integrationtests 78.99% <93.75%> (+<0.01%) ⬆️
unittests 61.77% <89.28%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@felixwang9817 felixwang9817 changed the title Rename input to batch_source in FeatureView Change internal references from input to batch_source Jul 23, 2021
Comment thread sdk/python/feast/feature_view.py Outdated
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
Comment thread sdk/python/feast/feature_view.py Outdated
Signed-off-by: Felix Wang <wangfelix98@gmail.com>

@achals achals left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@feast-ci-bot

Copy link
Copy Markdown
Collaborator

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@felixwang9817

Copy link
Copy Markdown
Collaborator Author

/retest

@feast-ci-bot
feast-ci-bot merged commit 489a0f8 into feast-dev:master Jul 27, 2021
@felixwang9817
felixwang9817 deleted the deprecate_input branch July 27, 2021 18:02
tags: Optional[Dict[str, str]] = None,
online: bool = True,
):
warnings.warn(

@tedhtchang tedhtchang Jul 28, 2021

Copy link
Copy Markdown
Contributor

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 ?

@felixwang9817 felixwang9817 Jul 28, 2021

Copy link
Copy Markdown
Collaborator Author

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.

Copy link
Copy Markdown
Collaborator Author

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!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@felixwang9817 Thanks. Looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants