20
20
import com .logicalclocks .hsfs .Feature ;
21
21
import com .logicalclocks .hsfs .FeatureStoreException ;
22
22
import com .logicalclocks .hsfs .Project ;
23
+ import com .logicalclocks .hsfs .TimeTravelFormat ;
23
24
import com .logicalclocks .hsfs .metadata .FeatureGroupApi ;
24
25
import com .logicalclocks .hsfs .FeatureGroupBase ;
25
26
import com .logicalclocks .hsfs .metadata .HopsworksClient ;
@@ -67,7 +68,7 @@ public void testFeatureGroupPrimaryKey() {
67
68
68
69
StreamFeatureGroup featureGroup = new StreamFeatureGroup (featureStore , "fgName" , 1 , "description" ,
69
70
Collections .singletonList ("primaryKey" ), Collections .singletonList ("partitionKey" ), "hudiPrecombineKey" ,
70
- true , features , null , "onlineTopicName" , null , null , null , null , null , null );
71
+ true , TimeTravelFormat . HUDI , features , null , "onlineTopicName" , null , null , null , null , null , null );
71
72
72
73
Exception pkException = assertThrows (FeatureStoreException .class , () -> {
73
74
featureGroupEngine .saveFeatureGroupMetaData (featureGroup ,
@@ -93,7 +94,7 @@ public void testFeatureGroupEventTimeFeature() {
93
94
94
95
StreamFeatureGroup featureGroup = new StreamFeatureGroup (featureStore , "fgName" , 1 , "description" ,
95
96
Collections .singletonList ("featureA" ), null , null ,
96
- true , features , null , "onlineTopicName" , null , null , "eventTime" , null , null , null );
97
+ true , TimeTravelFormat . HUDI , features , null , "onlineTopicName" , null , null , "eventTime" , null , null , null );
97
98
98
99
Exception eventTimeException = assertThrows (FeatureStoreException .class , () -> {
99
100
streamFeatureGroupEngine .saveFeatureGroupMetaData (featureGroup ,
@@ -119,7 +120,7 @@ public void testFeatureGroupPartitionPrecombineKeys() {
119
120
120
121
StreamFeatureGroup featureGroup = new StreamFeatureGroup (featureStore , "fgName" , 1 , "description" ,
121
122
Collections .singletonList ("featureA" ), Collections .singletonList ("partitionKey" ), "hudiPrecombineKey" ,
122
- true , features , null , "onlineTopicName" , null , null , null , null , null , null );
123
+ true , TimeTravelFormat . HUDI , features , null , "onlineTopicName" , null , null , null , null , null , null );
123
124
124
125
Exception partitionException = assertThrows (FeatureStoreException .class , () -> {
125
126
streamFeatureGroupEngine .saveFeatureGroupMetaData (featureGroup ,
@@ -164,7 +165,7 @@ public void testFeatureGroupAppendFeaturesResetSubject() throws FeatureStoreExce
164
165
165
166
StreamFeatureGroup featureGroup = new StreamFeatureGroup (featureStore , "fgName" , 1 , "description" ,
166
167
Collections .singletonList ("featureA" ), null , null ,
167
- true , features , null , "onlineTopicName" , null , null , "eventTime" , null , null , null );
168
+ true , TimeTravelFormat . HUDI , features , null , "onlineTopicName" , null , null , "eventTime" , null , null , null );
168
169
featureGroup .featureGroupEngine = featureGroupEngine ;
169
170
170
171
// Act
0 commit comments