1
0

[MINOR] Fix partition typo (#1209)

This commit is contained in:
lamber-ken
2020-01-12 09:35:55 +08:00
committed by leesf
parent e103165083
commit 017ee8e661
4 changed files with 4 additions and 4 deletions

View File

@@ -910,7 +910,7 @@ public class TestCleaner extends TestHoodieClientBase {
* Test CLeaner Stat when there are no partition paths.
*/
@Test
public void testCleaningWithZeroPartitonPaths() throws IOException {
public void testCleaningWithZeroPartitionPaths() throws IOException {
HoodieWriteConfig config = HoodieWriteConfig.newBuilder().withPath(basePath).withAssumeDatePartitioning(true)
.withCompactionConfig(HoodieCompactionConfig.newBuilder()
.withCleanerPolicy(HoodieCleaningPolicy.KEEP_LATEST_COMMITS).retainCommits(2).build())

View File

@@ -416,7 +416,7 @@ public class TestCopyOnWriteTable extends HoodieClientTestHarness {
WorkloadProfile profile = new WorkloadProfile(jsc.parallelize(records));
HoodieCopyOnWriteTable.UpsertPartitioner partitioner =
(HoodieCopyOnWriteTable.UpsertPartitioner) table.getUpsertPartitioner(profile);
assertEquals("Update record should have gone to the 1 update partiton", 0, partitioner.getPartition(
assertEquals("Update record should have gone to the 1 update partition", 0, partitioner.getPartition(
new Tuple2<>(updateRecords.get(0).getKey(), Option.ofNullable(updateRecords.get(0).getCurrentLocation()))));
return partitioner;
}