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

    https://github.com/apache/tajo/pull/454#discussion_r28204090
  
    --- Diff: 
tajo-core/src/main/java/org/apache/tajo/engine/parser/SQLAnalyzer.java ---
    @@ -491,14 +506,16 @@ public WindowSpec 
buildWindowSpec(SQLParser.Window_specificationContext ctx) {
         WindowFrameStartBoundType boundType = null;
         if (checkIfExist(context.UNBOUNDED())) {
           boundType = WindowFrameStartBoundType.UNBOUNDED_PRECEDING;
    -    } else if (checkIfExist(context.unsigned_value_specification())) {
    +    } else if (checkIfExist(context.PRECEDING())) {
           boundType = WindowFrameStartBoundType.PRECEDING;
    +    } else if (checkIfExist(context.FOLLOWING())) {
    +      boundType = WindowFrameStartBoundType.FOLLOWING;
         } else {
           boundType = WindowFrameStartBoundType.CURRENT_ROW;
    --- End diff --
    
    In pgsql, the default start bound is ```CURRENT_ROW```. Please see the 
following quote.
    ```
    The default framing option is RANGE UNBOUNDED PRECEDING, which is the same 
as RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW.
    ```


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to