[
https://issues.apache.org/jira/browse/HUDI-2306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17398562#comment-17398562
]
ASF GitHub Bot commented on HUDI-2306:
--------------------------------------
danny0405 commented on a change in pull request #3468:
URL: https://github.com/apache/hudi/pull/3468#discussion_r688397803
##########
File path:
hudi-flink/src/main/java/org/apache/hudi/configuration/FlinkOptions.java
##########
@@ -115,8 +115,8 @@ private FlinkOptions() {
public static final ConfigOption<Double> INDEX_STATE_TTL = ConfigOptions
.key("index.state.ttl")
.doubleType()
- .defaultValue(1.5D)
- .withDescription("Index state ttl in days, default 1.5 day");
+ .defaultValue(0D)
+ .withDescription("Index state ttl in days, default 0 day");
Review comment:
default store the index forever
##########
File path:
hudi-flink/src/main/java/org/apache/hudi/table/HoodieTableFactory.java
##########
@@ -227,6 +229,16 @@ private static void setupHiveOptions(Configuration conf) {
}
}
+ /**
+ * Sets up write options from the table definition.
+ * */
+ private static void setupWriteOptions(Configuration conf, CatalogTable
table) {
+ // sets up dropDuplicate options
+ if
(conf.getString(FlinkOptions.TABLE_TYPE).equals(FlinkOptions.TABLE_TYPE_COPY_ON_WRITE))
{
+ conf.setBoolean(FlinkOptions.INSERT_DROP_DUPS, true);
Review comment:
equalsIgnoreCase
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
> Support setting whether drop duplicate based on table type and modify the
> default value of index state ttl
> ----------------------------------------------------------------------------------------------------------
>
> Key: HUDI-2306
> URL: https://issues.apache.org/jira/browse/HUDI-2306
> Project: Apache Hudi
> Issue Type: Improvement
> Components: Flink Integration
> Reporter: Zheng yunhong
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.9.0
>
>
> Support setting whether drop duplicate based on table type and modify the
> default value of index state ttl.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)