[ https://issues.apache.org/jira/browse/FLINK-18713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jark Wu updated FLINK-18713: ---------------------------- Summary: Change duration ConfigOption to duration type in blink planner (was: Allow default ms unit for table.exec.mini-batch.allow-latency etc.) > Change duration ConfigOption to duration type in blink planner > -------------------------------------------------------------- > > Key: FLINK-18713 > URL: https://issues.apache.org/jira/browse/FLINK-18713 > Project: Flink > Issue Type: Improvement > Components: Table SQL / Planner > Affects Versions: 1.11.0 > Reporter: hailong wang > Assignee: hailong wang > Priority: Major > Labels: pull-request-available > Fix For: 1.12.0 > > > We use `scala.concurrent.duration.Duration.create` to parse timeStr in > `TableConfigUtils# > getMillisecondFromConfigDuration` for the following properties, > {code:java} > table.exec.async-lookup.timeout > table.exec.source.idle-timeout > table.exec.mini-batch.allow-latency > table.exec.emit.early-fire.delay > table.exec.emit.late-fire.delay{code} > And it must has the unit. > I think we can replace it with `TimeUtils.parseDuration(timeStr)` to parse > timeStr just like `DescriptorProperties#getOptionalDuration` to has default > ms unit and be consistent. > > -- This message was sent by Atlassian Jira (v8.3.4#803005)