Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2169#discussion_r69046225
  
    --- Diff: flink-java/src/main/java/org/apache/flink/api/java/DataSet.java 
---
    @@ -1193,21 +1196,46 @@ public long count() throws Exception {
                operation.setInput(this);
                return operation.createResult();
        }
    -   
    +
        // 
--------------------------------------------------------------------------------------------
        //  Union
        // 
--------------------------------------------------------------------------------------------
     
        /**
         * Creates a union of this DataSet with an other DataSet. The other 
DataSet must be of the same data type.
    -    * 
    +    *
         * @param other The other DataSet which is unioned with the current 
DataSet.
         * @return The resulting DataSet.
         */
        public UnionOperator<T> union(DataSet<T> other){
                return new UnionOperator<>(this, other, 
Utils.getCallLocationName());
        }
     
    +   /**
    +   * Creates a set minus of this DataSet with an other DataSet. The other 
DataSet must be of the same data type.
    +   *
    +   * @param other The other DataSet which is set minus with the current 
DataSet.
    +   * @return The resulting DataSet.
    +   */
    +   public CoGroupOperator<T, T, T> minus(DataSet<T> other){
    +           return coGroup(other)
    +                   .where("*")
    +                   .equalTo("*")
    +                   .with(new RichCoGroupFunction<T, T, T>() {
    --- End diff --
    
    A non-rich `CoGroupFunction` is sufficient.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to