[HUDI-2472] Enabling metadata table for TestHoodieIndex test case (#4045)
- Enablng the metadata table for testSimpleGlobalIndexTagLocationWhenShouldUpdatePartitionPath. This is more of a test issue.
This commit is contained in:
committed by
GitHub
parent
a2c91a7a9b
commit
7f3b89fad7
@@ -100,6 +100,12 @@ public class HoodieWriteableTestTable extends HoodieMetadataTestTable {
|
||||
FileCreateUtils.createPartitionMetaFile(basePath, partition);
|
||||
String fileName = baseFileName(currentInstantTime, fileId);
|
||||
|
||||
Path baseFilePath = new Path(Paths.get(basePath, partition, fileName).toString());
|
||||
if (this.fs.exists(baseFilePath)) {
|
||||
LOG.warn("Deleting the existing base file " + baseFilePath);
|
||||
this.fs.delete(baseFilePath, true);
|
||||
}
|
||||
|
||||
if (HoodieTableConfig.BASE_FILE_FORMAT.defaultValue().equals(HoodieFileFormat.PARQUET)) {
|
||||
HoodieAvroWriteSupport writeSupport = new HoodieAvroWriteSupport(
|
||||
new AvroSchemaConverter().convert(schema), schema, Option.of(filter));
|
||||
|
||||
Reference in New Issue
Block a user