Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C064175D1 for ; Wed, 18 Feb 2015 04:59:12 +0000 (UTC) Received: (qmail 3014 invoked by uid 500); 18 Feb 2015 04:59:12 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 2975 invoked by uid 500); 18 Feb 2015 04:59:12 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 2964 invoked by uid 99); 18 Feb 2015 04:59:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2015 04:59:12 +0000 Date: Wed, 18 Feb 2015 04:59:11 +0000 (UTC) From: "Daniel Barclay (Drill/MapR) (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1062) DRILL does not handle NULLS FIRST/LAST correctly in ORDER BY clause MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-1062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Barclay (Drill/MapR) updated DRILL-1062: ----------------------------------------------- Attachment: (was: DRILL-1062.4.patch.txt) > 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 > Reporter: Jinfeng Ni > Assignee: Daniel Barclay (Drill/MapR) > 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)