File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
java/serving/src/test/java/feast/serving/it Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -172,5 +172,35 @@ public void shouldGetOnlineFeaturesWithStringEntity() {
172172 }
173173 }
174174
175+ @ Test
176+ public void shouldGetOnlineFeaturesFromAllFeatureViews () {
177+ Map <String , ValueProto .RepeatedValue > entityRows =
178+ ImmutableMap .of (
179+ "entity" ,
180+ ValueProto .RepeatedValue .newBuilder ()
181+ .addVal (DataGenerator .createStrValue ("key-1" ))
182+ .build (),
183+ "driver_id" ,
184+ ValueProto .RepeatedValue .newBuilder ()
185+ .addVal (DataGenerator .createInt64Value (1005 ))
186+ .build ());
187+
188+ ImmutableList <String > featureReferences =
189+ ImmutableList .of (
190+ "feature_view_0:feature_0" ,
191+ "feature_view_0:feature_1" ,
192+ "driver_hourly_stats:conv_rate" ,
193+ "driver_hourly_stats:avg_daily_trips" );
194+
195+ ServingAPIProto .GetOnlineFeaturesRequest req =
196+ TestUtils .createOnlineFeatureRequest (featureReferences , entityRows );
197+
198+ ServingAPIProto .GetOnlineFeaturesResponse resp = servingStub .getOnlineFeatures (req );
199+
200+ for (final int featureIdx : List .of (0 , 1 , 2 , 3 )) {
201+ assertEquals (FieldStatus .PRESENT , resp .getResults (featureIdx ).getStatuses (0 ));
202+ }
203+ }
204+
175205 abstract void updateRegistryFile (RegistryProto .Registry registry );
176206}
You can’t perform that action at this time.
0 commit comments