You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/06/26 13:26:00 UTC

[jira] [Commented] (FLINK-6638) Allow overriding default value for all types when retrieving ConfigOption

    [ https://issues.apache.org/jira/browse/FLINK-6638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16063077#comment-16063077 ] 

ASF GitHub Bot commented on FLINK-6638:
---------------------------------------

Github user StephanEwen commented on the issue:

    https://github.com/apache/flink/pull/4016
  
    Looks good from my side, +1


> Allow overriding default value for all types when retrieving ConfigOption
> -------------------------------------------------------------------------
>
>                 Key: FLINK-6638
>                 URL: https://issues.apache.org/jira/browse/FLINK-6638
>             Project: Flink
>          Issue Type: Improvement
>          Components: Configuration
>            Reporter: Chesnay Schepler
>            Assignee: Chesnay Schepler
>
> Currently there exists no equivalent to {{Configuration#getString(ConfigOption<String> configOption, String overrideDefault)}} for types such as {{Integer}} or {{Boolean}}.
> If you want to use a non-String {{ConfigOption}} you either have to resort to hacks, like taking the key and going through the non-ConfigOption path or comparing the result with the default value of the option.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)