1
0

[HUDI-2970] Add test for archiving replace commit (#4345)

This commit is contained in:
Raymond Xu
2021-12-20 21:01:59 -08:00
committed by GitHub
parent f3f6112b75
commit 32a44bbe06
6 changed files with 118 additions and 14 deletions

View File

@@ -76,7 +76,7 @@ import java.util.stream.Stream;
* <p>
* Test data uses a toy Uber trips, data model.
*/
public class HoodieTestDataGenerator {
public class HoodieTestDataGenerator implements AutoCloseable {
// based on examination of sample file, the schema produces the following per record size
public static final int BYTES_PER_RECORD = (int) (1.2 * 1024);
@@ -860,6 +860,7 @@ public class HoodieTestDataGenerator {
public String partitionPath;
}
@Override
public void close() {
existingKeysBySchema.clear();
}