diff --git a/sdk/java/src/main/java/com/gojek/feast/RequestUtil.java b/sdk/java/src/main/java/com/gojek/feast/RequestUtil.java index 075c570c4e..874196e92b 100644 --- a/sdk/java/src/main/java/com/gojek/feast/RequestUtil.java +++ b/sdk/java/src/main/java/com/gojek/feast/RequestUtil.java @@ -61,7 +61,7 @@ public static List createFeatureRefs( "Feature id '%s' contains invalid version. Expected format: /:.", featureRefString)); } - } else if (projectSplit.length == 1) { + } else if (featureSplit.length == 1) { name = featureSplit[0]; } else { throw new IllegalArgumentException( diff --git a/sdk/java/src/test/java/com/gojek/feast/RequestUtilTest.java b/sdk/java/src/test/java/com/gojek/feast/RequestUtilTest.java index 1c58e9435c..3b9429ad8f 100644 --- a/sdk/java/src/test/java/com/gojek/feast/RequestUtilTest.java +++ b/sdk/java/src/test/java/com/gojek/feast/RequestUtilTest.java @@ -60,7 +60,7 @@ private static Stream provideValidFeatureIds() { Arrays.asList( "driver_project/driver_id:1", "driver_project/driver_name:1", - "booking_project/driver_name:1"), + "booking_project/driver_name"), Arrays.asList( FeatureReference.newBuilder() .setProject("driver_project") @@ -74,7 +74,6 @@ private static Stream provideValidFeatureIds() { .build(), FeatureReference.newBuilder() .setProject("booking_project") - .setVersion(1) .setName("driver_name") .build()))); }