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

    https://github.com/apache/flink/pull/2169#discussion_r69047875
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/table.scala
 ---
    @@ -426,6 +426,49 @@ class Table(
       }
     
       /**
    +    * Set minus between two [[Table]]s. Similar to an SQL EXCEPT ALL.
    +    * The fields of the two minus operands must fully overlap.
    +    *
    +    * Note: Both tables must be bound to the same [[TableEnvironment]].
    +    *
    +    * Example:
    +    *
    +    * {{{
    +    *   left.minusAll(right)
    +    * }}}
    +    */
    +  def minusAll(right: Table): Table = {
    +    // check that right table belongs to the same TableEnvironment
    +    if (right.tableEnv != this.tableEnv) {
    +      throw new ValidationException("Only tables from the same 
TableEnvironment can be unioned.")
    +    }
    +    new Table(tableEnv, SetMinus(logicalPlan, right.logicalPlan, 
true).validate(tableEnv))
    +  }
    +
    +  /**
    +    * Perform set minus between [[Table]]s with duplicate records removed.
    --- End diff --
    
    Please describe the semantics of minus all in more detail:
    - records of the first table are returned
    - how many identical records are returned


---
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