[jira] [Commented] (FLINK-929) Impossible to pass double with configuration

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (FLINK-929) Impossible to pass double with configuration

Shang Yuanchun (Jira)

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

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

GitHub user rmetzger opened a pull request:

    https://github.com/apache/incubator-flink/pull/13

    Fix for FLINK-929

   

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rmetzger/incubator-flink confDelegateFix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-flink/pull/13.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #13
   
----
commit 1623fcf0f98dad4fa2c0f23e179e6280e2f8c7dd
Author: Robert Metzger <[hidden email]>
Date:   2014-06-12T17:39:00Z

    Fix DelegatingConfiguration + Test

----


> Impossible to pass double with configuration
> --------------------------------------------
>
>                 Key: FLINK-929
>                 URL: https://issues.apache.org/jira/browse/FLINK-929
>             Project: Flink
>          Issue Type: Bug
>          Components: Java API
>    Affects Versions: pre-apache-0.5
>            Reporter: Jonas Traub
>            Assignee: Robert Metzger
>
> I discovered the following by using the new Java-API:
> When calling getDouble on the configuration given to the open method, the returned value is always the default value.
> It seems like an override of getDouble is missing in the class TaskConfig.DelegatingConfiguration.
> {code:title=MyClass.java|borderStyle=solid}
> //[...]
> public void open(Configuration parameters) throws Exception
> {
>     //This seems to always return the default value
>     parameters.getDouble("myKey",0.0);
> }
> //[...]
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)