Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-929

Impossible to pass double with configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • pre-apache-0.5
    • None
    • None

    Description

      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.

      MyClass.java
      //[...]
      public void open(Configuration parameters) throws Exception
      {
          //This seems to always return the default value
          parameters.getDouble("myKey",0.0);
      }
      //[...]
      

      Attachments

        Activity

          People

            rmetzger Robert Metzger
            powibol Jonas Traub
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: