Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
import java.util.function.Supplier;
import java.util.stream.Collectors;

import static org.apache.hudi.common.table.timeline.versioning.TimelineLayoutVersion.VERSION_1;

/**
* Class storing configs for the HoodieWriteClient.
*/
Expand Down Expand Up @@ -108,13 +110,13 @@ public class HoodieWriteConfig extends HoodieConfig {

public static final ConfigProperty<String> ROLLBACK_USING_MARKERS = ConfigProperty
.key("hoodie.rollback.using.markers")
.defaultValue("false")
.defaultValue("true")
.withDocumentation("Enables a more efficient mechanism for rollbacks based on the marker files generated "
+ "during the writes. Turned off by default.");

public static final ConfigProperty<String> TIMELINE_LAYOUT_VERSION = ConfigProperty
.key("hoodie.timeline.layout.version")
.noDefaultValue()
.defaultValue(String.valueOf(VERSION_1))
.sinceVersion("0.5.1")
.withDocumentation("Controls the layout of the timeline. Version 0 relied on renames, Version 1 (default) models "
+ "the timeline as an immutable log relying only on atomic writes for object storage.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public final class HoodieMetadataConfig extends HoodieConfig {
// Enable the internal Metadata Table which saves file listings
public static final ConfigProperty<Boolean> METADATA_ENABLE_PROP = ConfigProperty
.key(METADATA_PREFIX + ".enable")
.defaultValue(false)
.defaultValue(true)
.sinceVersion("0.7.0")
.withDocumentation("Enable the internal metadata table which serves table metadata like level file listings");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class ConsistencyGuardConfig extends HoodieConfig {
// config to enable OptimisticConsistencyGuard in finalizeWrite instead of FailSafeConsistencyGuard
public static final ConfigProperty<Boolean> ENABLE_OPTIMISTIC_CONSISTENCY_GUARD_PROP = ConfigProperty
.key("_hoodie.optimistic.consistency.guard.enable")
.defaultValue(true)
.defaultValue(false)
.sinceVersion("0.6.0")
.withDocumentation("Enable consistency guard, which optimistically assumes consistency is achieved after a certain time period.");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ object DataSourceWriteOptions {
*/
val ENABLE_ROW_WRITER_OPT_KEY: ConfigProperty[String] = ConfigProperty
.key("hoodie.datasource.write.row.writer.enable")
.defaultValue("false")
.defaultValue("true")
.withDocumentation("When set to true, will perform write operations directly using the spark native " +
"`Row` representation, avoiding any additional conversion costs.")

Expand Down