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

    https://github.com/apache/incubator-trafodion/pull/577#discussion_r71057841
  
    --- Diff: core/sql/parser/sqlparser.y ---
    @@ -13418,6 +13507,55 @@ query_specification : select_token '[' 
firstn_sorted NUMERIC_LITERAL_EXACT_NO_SC
               if (CmpCommon::getDefault(MVQR_LOG_QUERY_DESCRIPTORS) == DF_DUMP 
||
                   CmpCommon::getDefault(MVQR_LOG_QUERY_DESCRIPTORS) == 
DF_DUMP_MV)
                 ((RelRoot*)$$)->setAnalyzeOnly();
    +           } 
    +/* type relx */
    +query_specification : with_clause select_token '[' firstn_sorted 
NUMERIC_LITERAL_EXACT_NO_SCALE ']' set_quantifier query_spec_body
    +   {
    +     if ($7) {
    +       $$ = new (PARSERHEAP())
    +         RelRoot(new (PARSERHEAP())
    +                 GroupByAgg($8
    --- End diff --
    
    if($7) means there is a set_quantifier like (DISTINCT), so it will add a 
GroupByAgg node here.


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