Skip to content

Commit

Permalink
[FSTORE-752] Online type consistency issue (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
bubriks authored and SirOibaf committed Apr 19, 2023
1 parent c763572 commit d1a3159
Show file tree
Hide file tree
Showing 2 changed files with 402 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,18 @@
public class FeatureGroupInputValidation {

@EJB
private FeaturestoreInputValidation featureStoreInputValidation;
protected FeaturestoreInputValidation featureStoreInputValidation;
@EJB
private OnlineFeaturegroupController onlineFeaturegroupController;
protected OnlineFeaturegroupController onlineFeaturegroupController;

public FeatureGroupInputValidation() {
}

// for testing
public FeatureGroupInputValidation(FeaturestoreInputValidation featureStoreInputValidation) {
public FeatureGroupInputValidation(FeaturestoreInputValidation featureStoreInputValidation,
OnlineFeaturegroupController onlineFeaturegroupController) {
this.featureStoreInputValidation = featureStoreInputValidation;
this.onlineFeaturegroupController = onlineFeaturegroupController;
}

/**
Expand Down Expand Up @@ -164,7 +166,8 @@ public void verifyOnlineOfflineTypeMatch(FeaturegroupDTO featuregroupDTO) throws

if ((offlineType.startsWith("array") ||
offlineType.startsWith("struct") ||
offlineType.startsWith("binary")) &&
offlineType.startsWith("binary") ||
offlineType.startsWith("map")) &&
(onlineType.startsWith("varbinary") || onlineType.equals("blob"))) {
continue;
}
Expand Down
Loading

0 comments on commit d1a3159

Please sign in to comment.