Github user jihoonson commented on the pull request:
https://github.com/apache/tajo/pull/454#issuecomment-97451967
Thanks @sirpkt, but query results are still different.
Would you check it again?
**Tajo**
```
default> select l_partkey, l_tax, first_value(l_linestatus) over (partition
by l_partkey order by l_tax rows between 5 preceding and 8 following) from
lineitem;
l_partkey, l_tax, ?windowfunction
-------------------------------
1, 0.0, F
1, 0.0, F
1, 0.01, F
1, 0.01, F
1, 0.01, F
1, 0.02, F
1, 0.02, O
1, 0.02, F
1, 0.03, O
1, 0.03, F
1, 0.04, F
1, 0.04, O
1, 0.05, F
1, 0.05, F
1, 0.06, F
1, 0.06, O
1, 0.06, O
1, 0.06, F
1, 0.06, F
1, 0.07, F
1, 0.07, O
1, 0.07, F
1, 0.07, F
1, 0.07, O
1, 0.07, O
1, 0.08, F
1, 0.08, O
1, 0.08, F
1, 0.08, F
1, 0.08, F
1, 0.08, F
2, 0.0, O
2, 0.0, O
2, 0.0, O
2, 0.01, O
2, 0.01, O
...
```
**PostgreSQL**
```
jihoonson=# select l_partkey, l_tax, first_value(l_linestatus) over
(partition by l_partkey order by l_tax rows between 5 preceding and 8
following) from lineitem;
l_partkey | l_tax | first_value
-----------+-------+-------------
1 | 0 | O
1 | 0 | O
1 | 0.01 | O
1 | 0.01 | O
1 | 0.01 | O
1 | 0.02 | O
1 | 0.02 | F
1 | 0.02 | O
1 | 0.03 | F
1 | 0.03 | F
1 | 0.04 | F
1 | 0.04 | F
1 | 0.05 | O
1 | 0.05 | F
1 | 0.06 | F
1 | 0.06 | O
1 | 0.06 | O
1 | 0.06 | F
1 | 0.06 | F
1 | 0.07 | F
1 | 0.07 | F
1 | 0.07 | F
1 | 0.07 | O
1 | 0.07 | O
1 | 0.07 | O
1 | 0.08 | F
1 | 0.08 | O
1 | 0.08 | F
1 | 0.08 | F
1 | 0.08 | F
1 | 0.08 | O
2 | 0 | O
2 | 0 | O
2 | 0 | O
2 | 0.01 | O
2 | 0.01 | O
2 | 0.01 | O
2 | 0.02 | O
2 | 0.02 | O
2 | 0.02 | O
...
```
---
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.
---