Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr committed Oct 19, 2024
1 parent ca820a5 commit d3ed277
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static DeltaLogFile forCommitOrCheckpoint(FileStatus file) {
} else if (FileNames.isClassicCheckpointFile(fileName)) {
logType = LogType.CHECKPOINT_CLASSIC;
version = FileNames.checkpointVersion(fileName);
} else if (FileNames.isMulitPartCheckpointFile(fileName)) {
} else if (FileNames.isMultiPartCheckpointFile(fileName)) {
logType = LogType.MULTIPART_CHECKPOINT;
version = FileNames.checkpointVersion(fileName);
} else if (FileNames.isV2CheckpointFile(fileName)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ public Snapshot getSnapshotAt(Engine engine, long version) throws TableNotFoundE
Optional.of(version) /* versionToLoadOpt */,
Optional.empty() /* tableCommitHandlerOpt */);

// For non-coordinated commit table, the {@code getCoodinatedCommitsAwareSnapshot} will
// For non-coordinated commit table, the {@code getCoordinatedCommitsAwareSnapshot} will
// create the snapshot with the {@code logSegmentOpt} built here and will not trigger other
// operations. For coordinated commit table, the {@code getCoodinatedCommitsAwareSnapshot}
// operations. For coordinated commit table, the {@code getCoordinatedCommitsAwareSnapshot}
// will create the snapshot with the {@code logSegmentOpt} built here and will build the
// logSegment again by also fetching the unbackfilled commits from the commit coordinator.
// With the unbackfilled commits plus the backfilled commits in Delta log, a new snapshot
Expand Down Expand Up @@ -403,7 +403,7 @@ protected final Optional<List<FileStatus>> listDeltaAndCheckpointFiles(
break;
}

// Ideally listFromOrNone should return lexiographically sorted
// Ideally listFromOrNone should return lexicographically sorted
// files and so maxDeltaVersionSeen should be equal to fileVersion.
// But we are being defensive here and taking max of all the
// fileVersions seen.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static boolean isClassicCheckpointFile(String fileName) {
return CLASSIC_CHECKPOINT_FILE_PATTERN.matcher(fileName).matches();
}

public static boolean isMulitPartCheckpointFile(String fileName) {
public static boolean isMultiPartCheckpointFile(String fileName) {
return MULTI_PART_CHECKPOINT_FILE_PATTERN.matcher(fileName).matches();
}

Expand Down

0 comments on commit d3ed277

Please sign in to comment.