From issues-return-48745-archive-asf-public=cust-asf.ponee.io@drill.apache.org Fri Jan 12 16:12:05 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 4FE8D18076D for ; Fri, 12 Jan 2018 16:12:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3EC89160C30; Fri, 12 Jan 2018 15:12:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8B252160C33 for ; Fri, 12 Jan 2018 16:12:04 +0100 (CET) Received: (qmail 69580 invoked by uid 500); 12 Jan 2018 15:12:03 -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 69571 invoked by uid 99); 12 Jan 2018 15:12:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2018 15:12:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2EA601A0A06 for ; Fri, 12 Jan 2018 15:12:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.911 X-Spam-Level: X-Spam-Status: No, score=-99.911 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id KGEaASuwMTsA for ; Fri, 12 Jan 2018 15:12:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3ECD45F36A for ; Fri, 12 Jan 2018 15:12:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 88F78E0C18 for ; Fri, 12 Jan 2018 15:12:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4A98C25BD2 for ; Fri, 12 Jan 2018 15:12:00 +0000 (UTC) Date: Fri, 12 Jan 2018 15:12:00 +0000 (UTC) From: "Alex (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (DRILL-5822) The query with "SELECT *" with "ORDER BY" clause and `planner.slice_target`=1 doesn't preserve column order 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-5822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alex closed DRILL-5822. ----------------------- > The query with "SELECT *" with "ORDER BY" clause and `planner.slice_target`=1 doesn't preserve column order > ----------------------------------------------------------------------------------------------------------- > > Key: DRILL-5822 > URL: https://issues.apache.org/jira/browse/DRILL-5822 > Project: Apache Drill > Issue Type: Bug > Affects Versions: 1.11.0 > Reporter: Prasad Nagaraj Subramanya > Assignee: Vitalii Diravka > Labels: ready-to-commit > Fix For: 1.12.0 > > > Columns ordering doesn't preserve for the star query with sorting when this is planned into multiple fragments. > Repro steps: > 1) {code}alter session set `planner.slice_target`=1;{code} > 2) ORDER BY clause in the query. > Scenarios: > {code} > 0: jdbc:drill:zk=local> alter session reset `planner.slice_target`; > +-------+--------------------------------+ > | ok | summary | > +-------+--------------------------------+ > | true | planner.slice_target updated. | > +-------+--------------------------------+ > 1 row selected (0.082 seconds) > 0: jdbc:drill:zk=local> select * from cp.`tpch/nation.parquet` order by n_name limit 1; > +--------------+----------+--------------+------------------------------------------------------+ > | n_nationkey | n_name | n_regionkey | n_comment | > +--------------+----------+--------------+------------------------------------------------------+ > | 0 | ALGERIA | 0 | haggle. carefully final deposits detect slyly agai | > +--------------+----------+--------------+------------------------------------------------------+ > 1 row selected (0.141 seconds) > 0: jdbc:drill:zk=local> alter session set `planner.slice_target`=1; > +-------+--------------------------------+ > | ok | summary | > +-------+--------------------------------+ > | true | planner.slice_target updated. | > +-------+--------------------------------+ > 1 row selected (0.091 seconds) > 0: jdbc:drill:zk=local> select * from cp.`tpch/nation.parquet` order by n_name limit 1; > +------------------------------------------------------+----------+--------------+--------------+ > | n_comment | n_name | n_nationkey | n_regionkey | > +------------------------------------------------------+----------+--------------+--------------+ > | haggle. carefully final deposits detect slyly agai | ALGERIA | 0 | 0 | > +------------------------------------------------------+----------+--------------+--------------+ > 1 row selected (0.201 seconds) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)