You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Till Rohrmann (Jira)" <ji...@apache.org> on 2019/09/12 11:36:00 UTC
[jira] [Commented] (FLINK-14069) Enable TimeUtils to parse all time
units labels supported by scala Duration
[ https://issues.apache.org/jira/browse/FLINK-14069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16928465#comment-16928465 ]
Till Rohrmann commented on FLINK-14069:
---------------------------------------
Sounds like a good idea [~zhuzh]. I've assigned you the issue.
> 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
> Priority: Major
> 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)