You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Chun Chang (JIRA)" <ji...@apache.org> on 2015/04/30 00:15:06 UTC
[jira] [Closed] (DRILL-1062) DRILL does not handle NULLS FIRST/LAST
correctly in ORDER BY clause
[ https://issues.apache.org/jira/browse/DRILL-1062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chun Chang closed DRILL-1062.
-----------------------------
Assignee: Chun Chang (was: Daniel Barclay (Drill))
verified
#Generated by Git-Commit-Id-Plugin
#Wed Apr 29 14:39:22 EDT 2015
git.commit.id.abbrev=f5b0f49
There is an existing test case Advanced/Passing/mondrian/query117.q covers this.
> DRILL does not handle NULLS FIRST/LAST correctly in ORDER BY clause
> -------------------------------------------------------------------
>
> Key: DRILL-1062
> URL: https://issues.apache.org/jira/browse/DRILL-1062
> Project: Apache Drill
> Issue Type: Bug
> Components: Functions - Drill
> Reporter: Jinfeng Ni
> Assignee: Chun Chang
> Fix For: 0.8.0
>
> Attachments: DRILL-1062.2.patch, DRILL-1062.3.patch.txt, DRILL-1062.4.patch.txt
>
>
> ORDER BY clause could specify nulls first or nulls last. Currently, DRILL will always use nulls last policy.
> select tbl.topping[3].type from dfs.`/Users/jni/work/incubator-drill/exec/ref/target/test-classes/donuts.json` as tbl order by 1 nulls last;
> +------------+
> | EXPR$0 |
> +------------+
> | Chocolate |
> | Maple |
> | Powdered Sugar |
> | Powdered Sugar |
> | null |
> +------------+
> 5 rows selected (0.156 seconds)
> 0: jdbc:drill:zk=local> select tbl.topping[3].type from dfs.`/Users/jni/work/incubator-drill/exec/ref/target/test-classes/donuts.json` as tbl order by 1 nulls first;
> +------------+
> | EXPR$0 |
> +------------+
> | Chocolate |
> | Maple |
> | Powdered Sugar |
> | Powdered Sugar |
> | null |
> +------------+
> 5 rows selected (0.186 seconds)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)