trafodion-codereview mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sureshsubbiah <>
Subject [GitHub] trafodion pull request #1688: [TRAFODION-3034] Support Oracle Hierarchy Quer...
Date Tue, 02 Oct 2018 04:55:24 GMT
Github user sureshsubbiah commented on a diff in the pull request:
    --- Diff: core/sql/parser/sqlparser.y ---
    @@ -13280,13 +13288,130 @@ table_expression : from_clause where_clause sample_clause
    +            | from_clause startwith_clause where_clause 
    +                   {
    +                     if($1->getOperatorType() == REL_JOIN)
    --- End diff --
    I am confused on several aspects here. None maybe issues
    1) In line 13297 the WHERE clause is passed but not in line 13310. IF branch is taken
if we have a Join. Why would the WHERE clause not be passed in for a single scan? Is it because
it is already addressed in the preceding rule. If yes, what benefit do lines 13308 to 13318
    2) Are OLAP functions in the select list supported? Should sequence functions be supported
too (since they are similar)?
    3) I wonder if this whole block of code could be expressed more concisely. There seems
to be some redundancy now.


View raw message