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 EC4D917D0D for ; Fri, 7 Nov 2014 00:42:10 +0000 (UTC) Received: (qmail 18264 invoked by uid 500); 7 Nov 2014 00:42:10 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 18227 invoked by uid 500); 7 Nov 2014 00:42:10 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 18218 invoked by uid 99); 7 Nov 2014 00:42:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Nov 2014 00:42:10 +0000 X-ASF-Spam-Status: No, hits=-2000.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 07 Nov 2014 00:42:09 +0000 Received: (qmail 14435 invoked by uid 99); 7 Nov 2014 00:40:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Nov 2014 00:40:34 +0000 Date: Fri, 7 Nov 2014 00:40:33 +0000 (UTC) From: "Daniel Barclay (JIRA)" To: issues@drill.incubator.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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DRILL-1062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Barclay updated DRILL-1062: ---------------------------------- Attachment: DRILL-1062.1.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 > Attachments: DRILL-1062.1.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)