Skip to content

Commit

Permalink
[HOPSWORKS-3069][Append] Always send Time Travel Type Hudi for Stream…
Browse files Browse the repository at this point in the history
… Feature Group (logicalclocks#1064)
  • Loading branch information
moritzmeister authored Apr 5, 2022
1 parent aa8e9c2 commit 9e3f53b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
expect(parsed_json["featurestoreName"]).to eql(project.projectname.downcase + "_featurestore")
expect(parsed_json["name"]).to eql(featuregroup_name)
expect(parsed_json["type"]).to eql("streamFeatureGroupDTO")
expect(parsed_json["timeTravelFormat"]).to eql("HUDI")
expect(parsed_json["onlineTopicName"]).to eql(project.id.to_s + "_" + parsed_json["id"].to_s + "_" +
featuregroup_name + "_" + parsed_json["version"].to_s + "_onlinefs")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@

import io.hops.hopsworks.common.featurestore.featuregroup.FeaturegroupDTO;
import io.hops.hopsworks.persistence.entity.featurestore.featuregroup.Featuregroup;
import io.hops.hopsworks.persistence.entity.featurestore.featuregroup.cached.TimeTravelFormat;
import io.hops.hopsworks.persistence.entity.featurestore.featuregroup.cached.ValidationType;

public class StreamFeatureGroupDTO extends FeaturegroupDTO {
private ValidationType validationType = ValidationType.NONE;
private TimeTravelFormat timeTravelFormat = TimeTravelFormat.HUDI;
private DeltaStreamerJobConf deltaStreamerJobConf;
private Boolean onlineEnabled = true;

Expand Down Expand Up @@ -60,10 +62,20 @@ public void setOnlineEnabled(Boolean onlineEnabled) {
this.onlineEnabled = onlineEnabled;
}

public TimeTravelFormat getTimeTravelFormat() {
return timeTravelFormat;
}

public void setTimeTravelFormat(
TimeTravelFormat timeTravelFormat) {
this.timeTravelFormat = timeTravelFormat;
}

@Override
public String toString() {
return "StreamFeatureGroupDTO{" +
"validationType=" + validationType +
", timeTravelFormat=" + timeTravelFormat +
", deltaStreamerJobConf=" + deltaStreamerJobConf +
", onlineEnabled=" + onlineEnabled +
'}';
Expand Down

0 comments on commit 9e3f53b

Please sign in to comment.