1
0

[HUDI-2933] DISABLE Metadata table by default (#4213)

This commit is contained in:
vinoth chandar
2021-12-03 21:12:35 -08:00
committed by GitHub
parent a799fae316
commit 0fd6b2d71e
2 changed files with 2 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ public class TestHoodieSparkMergeOnReadTableRollback extends SparkClientFunction
@ValueSource(booleans = {true, false})
void testRollbackWithDeltaAndCompactionCommit(boolean rollbackUsingMarkers) throws Exception {
HoodieWriteConfig.Builder cfgBuilder = getConfigBuilder(false, rollbackUsingMarkers, HoodieIndex.IndexType.SIMPLE)
.withMetadataConfig(HoodieMetadataConfig.newBuilder().enable(true).build());
.withMetadataConfig(HoodieMetadataConfig.newBuilder().enable(false).build());
addConfigsForPopulateMetaFields(cfgBuilder, true);
HoodieWriteConfig cfg = cfgBuilder.build();

View File

@@ -44,7 +44,7 @@ public final class HoodieMetadataConfig extends HoodieConfig {
// Enable the internal Metadata Table which saves file listings
public static final ConfigProperty<Boolean> ENABLE = ConfigProperty
.key(METADATA_PREFIX + ".enable")
.defaultValue(true)
.defaultValue(false)
.sinceVersion("0.7.0")
.withDocumentation("Enable the internal metadata table which serves table metadata like level file listings");