File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
services/tables/src/test/java/com/linkedin/openhouse/tables/model Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public static List<Snapshot> obtainSnapshotsFromTableLoc(String tableLoc) {
5252 return Lists .newArrayList (new HadoopTables ().load (tableLoc ).snapshots ().iterator ());
5353 }
5454
55- public static Map <String , String > obtainSnapshotRefsFromSnapshot (String jsonSnapshot ) {
55+ public static Map <String , String > createMainBranchRefPointingTo (String jsonSnapshot ) {
5656 Map <String , String > snapshotRefs = new HashMap <>();
5757 Snapshot snapshot = SnapshotParser .fromJson (jsonSnapshot );
5858 SnapshotRef snapshotRef = SnapshotRef .branchBuilder (snapshot .snapshotId ()).build ();
@@ -154,7 +154,7 @@ public static IcebergSnapshotsRequestBody preparePutSnapshotsWithAppendRequest(
154154 .baseTableVersion (baseTableVersion )
155155 .jsonSnapshots (
156156 snapshotsToPut .stream ().map (SnapshotParser ::toJson ).collect (Collectors .toList ()))
157- .snapshotRefs (obtainSnapshotRefsFromSnapshot (SnapshotParser .toJson (appendedSnapshot )))
157+ .snapshotRefs (createMainBranchRefPointingTo (SnapshotParser .toJson (appendedSnapshot )))
158158 .createUpdateTableRequestBody (createUpdateTableRequestBody )
159159 .build ();
160160 }
You can’t perform that action at this time.
0 commit comments