Zhu Zhu created FLINK-14069: ------------------------------- Summary: Enable TimeUtils to parse all time units labels supported by scala Duration Key: FLINK-14069 URL: https://issues.apache.org/jira/browse/FLINK-14069 Project: Flink Issue Type: Bug Components: Runtime / Configuration Affects Versions: 1.10.0 Reporter: Zhu Zhu Fix For: 1.10.0
Currently we are using scala Duration to parse duration configs. The supported time unit labels are { DAYS -> "d day", HOURS -> "h hour", MINUTES -> "min minute", SECONDS -> "s sec second", MILLISECONDS -> "ms milli millisecond", MICROSECONDS -> "µs micro microsecond", NANOSECONDS -> "ns nano nanosecond" } We want to use Flink {{TimeUtils}} to parse the duration configuration, as a step to let flink core get rid of scala dependencies. In order not to break existing jobs, {{TimeUtils}} must be able to parse all time unit labels supported by scala Duration. Current TimeUtils supported time unit labels are "h", "min", "s" and "ms". We need to enrich it. -- This message was sent by Atlassian Jira (v8.3.2#803003)