ASF GitHub Bot commented on FLINK-6094:

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

    --- Diff: 
    @@ -56,17 +59,20 @@ object UpdatingPlanChecker {
       /** Identifies unique key fields in the output of a RelNode. */
    -  private class UniqueKeyExtractor extends RelVisitor {
    -    var keys: Option[Array[String]] = None
    +  private class UniqueKeyExtractor {
    -    override def visit(node: RelNode, ordinal: Int, parent: RelNode): Unit 
= {
    +    // visit() function will return a tuple, the first element of tuple is 
the key, the second is
    +    // the key's corresponding ancestor. Ancestors are used to identify 
same keys, for example:
    --- End diff --
    I think a more common term than "ancestor" is "equivalence group". In 
principle, this is used to identify fields which are equivalent. I think we 
should not point to a field in the input of an operator but rather choose on of 
the fields in the current input as "id" for the equivalence group. For example, 
if we have a table `(a, b, c)` and do `select(a, a as x, b as y, b as z)` I 
would resolve these fields as `[(a, a), (x, a), (y, y), (z, y)]`, i.e, always 
use the lexicographic smallest attribute as the common group id. 
    IMO, this convention is easier to handle if we have to work with 
equivalence groups which are joined by equi-predicates.

> Implement stream-stream proctime non-window  inner join
> -------------------------------------------------------
>                 Key: FLINK-6094
>                 URL: https://issues.apache.org/jira/browse/FLINK-6094
>             Project: Flink
>          Issue Type: New Feature
>          Components: Table API & SQL
>            Reporter: Shaoxuan Wang
>            Assignee: Hequn Cheng
> This includes:
> 1.Implement stream-stream proctime non-window  inner join
> 2.Implement the retract process logic for join

This message was sent by Atlassian JIRA

Reply via email to