Commit 0e2e8ec
Make Projects optional & Update Feature References (feast-dev#693)
* Squash and rebase on master
Squashed commits:
* Update e2e test verify that users can retrieve from multiple featuresets in batch serving
* Add e2e test verify that users can retrieve from multiple featuresets in online serving
* Remove and Reserve version field in FeatureReference in ServingService proto
* Clarify comment in SpecService docs
* Update BQ Retriever to only namespace returned features with featureset only when explictly specified in feature reference.
* Configure BQ Retriever SQL queries to namespace returned feature column with feature set name
* Resolve unresolved rebase markers in Python's SDK client docs
* Squash and Rebase on master
* history:
* Fix batch e2e failing as new SDK does not accept feature refs with projects.
* Fix e2e batch tests: remove rebase markers
* Fix keyerror in end to end tests
* Fix e2e test that still has removed versions
* Correct spelling of omitted in SpecService
* Squash and rebase on version removal PR
* Fix java lint
* Remove comments in JobServiceTest that do not comply with JavaDoc
* Clarify naming of unit test in SpecServiceTest
* Fix python linting
* Refactor AccessManagementService's archiveProject() to use guard clauses
* Update Go SDK to strip the project part of string feature references returned from serving
* Update Java SDK to strip the project part of string feature references returned from serving
* Update Python SDK to strip the project part of string feature references returned from serving
* Fix java unit tests afeter adding check for duplicate feature references
* Remove trailing whitespace to satisfy python lint.
* Fix typo in e2e
* Add check that multiple feature references in get online/batch features don't refer to the same feature
* Fix end to end tests referencing the same feature in different references
* Fix typo in call to get_feature_set in e2e tests.
* Fix issue in e2e test where client persisted wrong project. Should used default instead.
* Remove support of projects in string Feature References in java SDK
* Remove support of projects in string Feature References in go SDK
* Remove support of projects in string Feature References in python SDK
* Fix python SDK linting failures
* Update documentation in CoreService proto to document that field names are unique with a featureset
* Update E2E tests to check default project and updated feature reference functionality
* Fixed Python SDK's FeatureSetRef rendering with missing project
* Make Python's SDK client's archive_project() revert to default project on archive.
* Make Feast Core throw an error when the user attempts to archive the default project
* Apply spotless formatting to java SDK's RequestUtil
* Updated python SDK's client's to parse feature refs without projects and with feature sets
* Update Go SDK buildFeatureRefs() to parse feature refs without projects and with feature sets
* Regenrate go protos for Go SDK using make compile-protos-go
* Changes Java SDK's FeastClient defaultProject to project which overrides project in feature refs.
* Updated Java SDK's RequestUtil to parse string feature refs without project/with feature set.
* Refactor CachedSpecService to support different variations of feature references.
* Update RefUtil's generateFeatureStringRef to FeatureReference with featureset name field
* Add missing final to make core Project models's DEFAULT_NAME into a constant.
* Added feature_set_name field to ServingService's FeatureReference proto
* Remove projects from JobUpdateTask's unit tests
* Remove projects from ServingServiceGRpcControllerTest's unit tests.
* Remove projects from OnlineServingService's unit tests.
* Update CachedSpecService's getFeatureToFeatureSetMapping() to match Feature References with no project.
* Update RefUtil's generateFeatureStringRef() to properly render refs without a project
* Document in CoreService proto that specifying project in list, get, update featureset is optional
* Update SpecService's applyFeatureSet() to auto default project if not specified.
* Update SpecService's listFeatureSets() to autofill default project if project unspecified.
* Remove comment as FeatureSet's id is no longer a String.
* Update SpecService's getFeatureSet() to autofill default project if project unspecified.
* Config AccessManagementService to create default project in constructor
* Document that FeatureReference's project field is optional.
* Allow CachedSpecService's getFeatureSets() to match FeatureReferences with no project by autofilling default project
* Make CachedSpecService's featureSetCacheLoader a local var instead of private property as its only used once.
* Change SpecServiceTest to use global default project constant.
* Make AccessManagementService's archiveProject() throw UnimplementOperation error when trying to archive default project.
* Correct incorrect documentation on source being ignored on Core's ApplyFeatureSet
* Use ValueProto.Value in java SDK's FeastClient lambda instead of generic Object
* Clarify how the ignore project param of feature ref to string() worked in docs in SDKs
* Correct missing test to check for empty feature refs in java SDK.
* Clarified ref_protos to feature_ref_protos to make code clearer
* Rename ServingService's FeatureReference proto 'feature_set_name` to `feature_set`
* Remove nested function strip_project() with loop with python SDK's client's get_online_features()
* Remove extra version paramter in python sdk test's TestFeatureRef
* Change CachedSpecService's "hasProject == true" to more concise "!hasProject"
* Removed setFeatureSet() calls to OnlineServingServiceTest as it does not need to be set in the unit test
* Make client.set_project() without args reset project to default in python SDK
* Updated e2e to test for feature set inference for feature ref without feature set specified
* Remove unused field max_age in FeatureReference
* Fix typo in e2e
* Fix error in e2e tests regarding string splits
* Optimise Serving's CachedSpecService populateCache() by directly assigning map.
* Remove final in CachedSpecService to allow assignment in featureToFeatureSetMapping
* Remove unnescessary copy of list in QueryTemplater
Co-authored-by: Zhu Zhanyan <zhu.zhanyan@gojek.com>1 parent d8459e0 commit 0e2e8ec
File tree
50 files changed
+1688
-1214
lines changed- core/src
- main/java/feast/core
- grpc
- model
- service
- test/java/feast/core
- job
- service
- protos/feast
- core
- serving
- sdk
- go
- protos
- feast
- core
- serving
- storage
- types
- tensorflow_metadata/proto/v0
- java/src
- main/java/com/gojek/feast
- test/java/com/gojek/feast
- python
- feast
- tests
- serving/src
- main/java/feast/serving
- specs
- util
- test/java/feast/serving
- controller
- service
- storage/connectors/bigquery/src/main
- java/feast/storage/connectors/bigquery/retriever
- resources/templates
- tests/e2e
- basic
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
50 files changed
+1688
-1214
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
186 | 197 | | |
187 | 198 | | |
188 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| 98 | + | |
97 | 99 | | |
98 | | - | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
120 | | - | |
| 122 | + | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| |||
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
134 | | - | |
| 137 | + | |
135 | 138 | | |
136 | | - | |
| 139 | + | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
142 | 150 | | |
143 | 151 | | |
144 | 152 | | |
| |||
227 | 235 | | |
228 | 236 | | |
229 | 237 | | |
230 | | - | |
| 238 | + | |
| 239 | + | |
231 | 240 | | |
232 | 241 | | |
233 | 242 | | |
234 | 243 | | |
235 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
236 | 253 | | |
237 | 254 | | |
238 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
Lines changed: 74 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
110 | | - | |
111 | 109 | | |
112 | 110 | | |
113 | 111 | | |
| |||
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
127 | | - | |
128 | 125 | | |
129 | 126 | | |
130 | 127 | | |
| |||
134 | 131 | | |
135 | 132 | | |
136 | 133 | | |
137 | | - | |
138 | 134 | | |
139 | 135 | | |
140 | 136 | | |
141 | 137 | | |
142 | 138 | | |
143 | 139 | | |
144 | | - | |
145 | 140 | | |
146 | 141 | | |
147 | 142 | | |
| |||
203 | 198 | | |
204 | 199 | | |
205 | 200 | | |
206 | | - | |
207 | 201 | | |
208 | 202 | | |
209 | 203 | | |
| |||
216 | 210 | | |
217 | 211 | | |
218 | 212 | | |
219 | | - | |
220 | 213 | | |
221 | 214 | | |
222 | 215 | | |
| |||
275 | 268 | | |
276 | 269 | | |
277 | 270 | | |
278 | | - | |
279 | 271 | | |
280 | 272 | | |
281 | 273 | | |
| |||
Lines changed: 40 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
108 | | - | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
| |||
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | 166 | | |
173 | 167 | | |
174 | 168 | | |
| |||
511 | 505 | | |
512 | 506 | | |
513 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
514 | 528 | | |
515 | 529 | | |
516 | 530 | | |
| |||
661 | 675 | | |
662 | 676 | | |
663 | 677 | | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
668 | 692 | | |
669 | 693 | | |
670 | 694 | | |
| |||
0 commit comments