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

    https://github.com/apache/trafodion/pull/1658#discussion_r204855585
  
    --- Diff: core/sql/parser/sqlparser.y ---
    @@ -19430,6 +19432,124 @@ exists_predicate : TOK_EXISTS rel_subquery
                                  $$ = new (PARSERHEAP()) Exists($2);
                                }
     
    +overlaps_predicate : value_expression_list_paren TOK_OVERLAPS 
value_expression_list_paren
    +         {
    +            ItemExprList  exprList1($1, PARSERHEAP());
    +            ItemExprList  exprList2($3, PARSERHEAP());
    +            //Syntax Rules: 
    +            //  1) The degrees of <row value predicand 1> and <row value 
predicand 2> shall both be 2.
    +            if ((exprList1.entries() != 2)
    +                  || (exprList1.entries() != exprList2.entries()))
    +              {
    +                 *SqlParser_Diags << DgSqlCode(-4077)
    --- End diff --
    
    This is OK to have in the Parser, as it depends only on syntax.


---

Reply via email to