Skip to content
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

Add DatastoreTable infra object #2140

Merged
merged 3 commits into from
Dec 16, 2021

Conversation

felixwang9817
Copy link
Collaborator

Signed-off-by: Felix Wang [email protected]

What this PR does / why we need it: This PR adds an InfraObject for Datastore tables, as part of the feast plan implementation.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@codecov-commenter
Copy link

codecov-commenter commented Dec 14, 2021

Codecov Report

Merging #2140 (fad30d4) into master (59031ca) will increase coverage by 24.77%.
The diff coverage is 42.85%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #2140       +/-   ##
===========================================
+ Coverage   57.88%   82.66%   +24.77%     
===========================================
  Files         101      102        +1     
  Lines        8176     9501     +1325     
===========================================
+ Hits         4733     7854     +3121     
+ Misses       3443     1647     -1796     
Flag Coverage Δ
integrationtests 74.59% <42.85%> (?)
unittests 57.77% <34.69%> (-0.12%) ⬇️

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

Impacted Files Coverage Δ
sdk/python/feast/infra/online_stores/datastore.py 80.11% <42.85%> (+47.83%) ⬆️
sdk/python/feast/repo_operations.py 38.35% <0.00%> (-5.83%) ⬇️
sdk/python/feast/__init__.py 88.00% <0.00%> (-2.48%) ⬇️
sdk/python/feast/infra/local.py 87.09% <0.00%> (-0.14%) ⬇️
sdk/python/feast/diff/FcoDiff.py 69.23% <0.00%> (ø)
sdk/python/feast/data_source.py 61.29% <0.00%> (+0.40%) ⬆️
sdk/python/feast/online_response.py 87.71% <0.00%> (+1.75%) ⬆️
sdk/python/feast/infra/online_stores/sqlite.py 96.77% <0.00%> (+2.15%) ⬆️
sdk/python/feast/infra/provider.py 90.41% <0.00%> (+5.23%) ⬆️
sdk/python/feast/feature_view.py 83.41% <0.00%> (+6.26%) ⬆️
... and 54 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 59031ca...fad30d4. Read the comment docs.

Comment on lines 33 to 42
oneof project_id {
bool project_id_null = 3;
string project_id_value = 4;
}

// Datastore namespace, which can be null
oneof namespace {
bool namespace_null = 5;
string namespace_value = 6;
}
Copy link
Member

Choose a reason for hiding this comment

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

These should probably be google.protobuf.StringValue. That's a struct type, that can be null - so you don't have to implement the same wrapper here and can reuse StringValue instead.

)

def update(self):
client = _initialize_client(self.project_id, self.namespace)
Copy link
Member

Choose a reason for hiding this comment

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

any reason this can't be initialized in __init__?

Copy link
Member

@achals achals left a comment

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
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

Needs approval from an approver in each of these files:
  • OWNERS [achals,felixwang9817]

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

@feast-ci-bot feast-ci-bot merged commit 3cd9678 into feast-dev:master Dec 16, 2021
@felixwang9817 felixwang9817 deleted the datastore_infra_object branch December 16, 2021 21:04
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.

4 participants