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

"Streaming Aggregation" document contains misleading code examples

    XMLWordPrintableJSON

    Details

      Description

      In the document of Streaming Aggregation  , there are some misleading code examples, e.g.

      // instantiate table environment
      TableEnvironment tEnv = ...tEnv.getConfig()        // access high-level configuration
        .getConfiguration()   // set low-level key-value options
        .setString("table.exec.mini-batch.enabled", "true")  // enable mini-batch optimization
        .setString("table.exec.mini-batch.allow-latency", "5 s") // use 5 seconds to buffer input records
        .setString("table.exec.mini-batch.size", "5000"); // the maximum number of records can be buffered by each aggregate operator task
      

      It seems `Configuration` supports method chaining, while it's not true since the return type of `Configuration#setString` is Void.

       

      So what about making `Configuration` support method chaining, or updating the documentation?

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                victor-wong Victor Wong
                Reporter:
                victor-wong Victor Wong
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m