[
https://issues.apache.org/jira/browse/TAJO-1972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14996267#comment-14996267
]
ASF GitHub Bot commented on TAJO-1972:
--------------------------------------
Github user jinossy commented on the pull request:
https://github.com/apache/tajo/pull/857#issuecomment-155011477
+1 LGTM!
Ship it!
> Invalid sort order with NULLS FIRST|LAST
> -----------------------------------------
>
> Key: TAJO-1972
> URL: https://issues.apache.org/jira/browse/TAJO-1972
> Project: Tajo
> Issue Type: Bug
> Reporter: Jihoon Son
> Assignee: Jihoon Son
> Priority: Critical
> Fix For: 0.11.1
>
>
> Currently, the order of nulls is affected by the sort order (asc and desc),
> but should not. Here is the example of pgsql's behaviour.
> {noformat}
> postgres=# select * from test;
> id | name
> ----+-------
> 0 | test1
> 1 |
> | test2
> (3 rows)
> postgres=# select * from test order by id asc nulls first;
> id | name
> ----+-------
> | test2
> 0 | test1
> 1 |
> (3 rows)
> postgres=# select * from test order by id desc nulls first;
> id | name
> ----+-------
> | test2
> 1 |
> 0 | test1
> (3 rows)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)