1
0

HUDI-942 Increase default value number of delta commits for inline compaction (#1664)

Co-authored-by: Sathyaprakash Govindasamy <sathyaprakashg@zillowgroup.com>
This commit is contained in:
sathyaprakashg
2020-06-10 16:16:44 -07:00
committed by GitHub
parent 37838cea60
commit df2e0c760e
4 changed files with 7 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ import org.apache.hudi.common.table.HoodieTableMetaClient;
import org.apache.hudi.common.table.TableSchemaResolver;
import org.apache.hudi.common.table.timeline.HoodieTimeline;
import org.apache.hudi.common.util.Option;
import org.apache.hudi.config.HoodieCompactionConfig;
import org.apache.hudi.config.HoodieIndexConfig;
import org.apache.hudi.config.HoodieWriteConfig;
import org.apache.hudi.exception.HoodieInsertException;
@@ -467,6 +468,7 @@ public class TestTableSchemaEvolution extends HoodieClientTestBase {
private HoodieWriteConfig getWriteConfig(String schema) {
return getConfigBuilder(schema)
.withIndexConfig(HoodieIndexConfig.newBuilder().withIndexType(IndexType.INMEMORY).build())
.withCompactionConfig(HoodieCompactionConfig.newBuilder().withMaxNumDeltaCommitsBeforeCompaction(1).build())
.withAvroSchemaValidate(true)
.build();
}