GitHub user sirpkt opened a pull request:

    https://github.com/apache/tajo/pull/308

    TAJO-920: Add FIRST_VALUE and LAST_VALUE window functions

    I implemented first_value() and last_value() for TEXT type first.
    
    - It adds first_value, last_value keyword in lexer and parser and modifies 
SQLAnalyzer to call corresponding functions.
    - first_value() is defined as window function, however, last_value() is 
defined as aggregation function because it needs to reach the end row of the 
given column to determine the last value.
    - With current window function structure, every window function name should 
be hardcoded in ExprAnnotator.java, so do it for first_value()


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sirpkt/tajo TAJO-920

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tajo/pull/308.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #308
    
----
commit d07fdb3ccdf4b929d8562a4fc3535f7a3df68280
Author: sirpkt <[email protected]>
Date:   2014-12-18T08:03:51Z

    TAJO-920: Add FIRST_VALUE and LAST_VALUE window functions

commit 7464d62460bc7af2b268541c0be57d57d7e899ce
Author: sirpkt <[email protected]>
Date:   2014-12-18T09:16:26Z

    TAJO-920: Add FIRST_VALUE and LAST_VALUE window functions

----


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