Skip to content

Commit dd5c5a9

Browse files
committed
fixing function naming
1 parent c28dbae commit dd5c5a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/tables/src/test/java/com/linkedin/openhouse/tables/model/IcebergSnapshotsModelTestUtilities.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)