Login  Register

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

Posted by Shang Yuanchun (Jira) on Jun 12, 2014; 4:10pm
URL: http://deprecated-apache-flink-mailing-list-archive.368.s1.nabble.com/jira-Created-FLINK-929-Impossible-to-pass-double-with-configuration-tp99.html

Jonas Traub created FLINK-929:
---------------------------------

             Summary: Impossible to pass double with configuration
                 Key: FLINK-929
                 URL: https://issues.apache.org/jira/browse/FLINK-929
             Project: Flink
          Issue Type: Bug
            Reporter: Jonas Traub


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)