Update Feast Core list features method - #1176
Conversation
f3c2a1c to
6adcf71
Compare
Signed-off-by: Terence <terencelimxp@gmail.com>
Signed-off-by: Terence <terencelimxp@gmail.com>
6adcf71 to
18bd370
Compare
|
/retest |
| () -> apiClient.simpleGetFeatureTable(projectName, featureTableName)); | ||
|
|
||
| assertThat(featureTables.size(), equalTo(0)); | ||
| assertThat(featureTables.size(), equalTo(1)); |
There was a problem hiding this comment.
The test is called "should ReturnNoTables", isn't there contradiction?
| * @param features List of features to insert to map. | ||
| * @return Map of featureRef:feature. | ||
| */ | ||
| public Map<String, FeatureV2> getFeaturesRefToFeaturesMap(List<FeatureV2> features) { |
There was a problem hiding this comment.
why this method is public? Seems that it's being only used by getFeaturesByRef
| * @param featureReference to render as string | ||
| * @return string representation of feature reference. | ||
| */ | ||
| public static String renderFeatureRef(ServingAPIProto.FeatureReferenceV2 featureReference) { |
There was a problem hiding this comment.
Do we need this method? It just wraps single function call
| * @param labelsFilter contain labels that should be attached to FeatureTable's features | ||
| * @return Map of Feature references and Features | ||
| */ | ||
| public Map<String, FeatureV2> getFeaturesByRef(Map<String, String> labelsFilter) { |
There was a problem hiding this comment.
Name is a little bit confusing. It looks more like getFeaturesByLabels
| .build(); | ||
| List<FeatureTableProto.FeatureTable> featureTables = | ||
| apiClient.simpleListFeatureTables(filter); | ||
| System.out.println(featureTables); |
Signed-off-by: Terence <terencelimxp@gmail.com>
Signed-off-by: Terence <terencelimxp@gmail.com>
Signed-off-by: Terence <terencelimxp@gmail.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pyalex, terryyylim The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
What this PR does / why we need it:
Currently,
listFeaturesmethod is not updated to return features from feature tables, but rather feature sets.This PR includes:
ListFeaturesResponseprotoSpecServiceto retrieve features from feature tablesWhich issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: