Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[typo] Fix typo of FirstRowMergeFunctionWrapper #3142

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
import static org.apache.paimon.utils.Preconditions.checkArgument;

/** Wrapper for {@link MergeFunction}s to produce changelog by lookup for first row. */
public class FistRowMergeFunctionWrapper implements MergeFunctionWrapper<ChangelogResult> {
public class FirstRowMergeFunctionWrapper implements MergeFunctionWrapper<ChangelogResult> {

private final Filter<InternalRow> contains;
private final FirstRowMergeFunction mergeFunction;
private final ChangelogResult reusedResult = new ChangelogResult();

public FistRowMergeFunctionWrapper(
public FirstRowMergeFunctionWrapper(
MergeFunctionFactory<KeyValue> mergeFunctionFactory, Filter<InternalRow> contains) {
this.contains = contains;
MergeFunction<KeyValue> mergeFunction = mergeFunctionFactory.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public MergeFunctionWrapper<ChangelogResult> create(
int outputLevel,
LookupLevels<Boolean> lookupLevels,
@Nullable DeletionVectorsMaintainer deletionVectorsMaintainer) {
return new FistRowMergeFunctionWrapper(
return new FirstRowMergeFunctionWrapper(
mfFactory,
key -> {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ public void testSum(boolean changelogRowDeduplicate) {
@Test
public void testFirstRow() {
Set<InternalRow> highLevel = new HashSet<>();
FistRowMergeFunctionWrapper function =
new FistRowMergeFunctionWrapper(
FirstRowMergeFunctionWrapper function =
new FirstRowMergeFunctionWrapper(
projection ->
new FirstRowMergeFunction(
new RowType(
Expand Down
Loading