Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
codope committed Sep 27, 2022
1 parent 75a0a69 commit 3f29d7a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,13 @@ public void testKeepLatestCommits(
}

@ParameterizedTest
@ValueSource(Boolean.class)
public void testKeepLatestFileVersions(boolean ) throws Exception {
@ValueSource(booleans = {true, false})
public void testKeepLatestFileVersions(boolean incrementalCleaningEnabled) throws Exception {
HoodieWriteConfig config =
HoodieWriteConfig.newBuilder().withPath(basePath)
.withMetadataConfig(HoodieMetadataConfig.newBuilder().withAssumeDatePartitioning(true).build())
.withCleanConfig(HoodieCleanConfig.newBuilder()
.withCleanerPolicy(HoodieCleaningPolicy.KEEP_LATEST_FILE_VERSIONS).retainFileVersions(1).build())
.withCleanerPolicy(HoodieCleaningPolicy.KEEP_LATEST_FILE_VERSIONS).retainFileVersions(1).withIncrementalCleaningMode(incrementalCleaningEnabled).build())
.build();

HoodieTableMetadataWriter metadataWriter = SparkHoodieBackedTableMetadataWriter.create(hadoopConf, config, context);
Expand Down

0 comments on commit 3f29d7a

Please sign in to comment.