Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7A8E1200C4F for ; Fri, 17 Mar 2017 22:48:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 79340160B70; Fri, 17 Mar 2017 21:48:47 +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 CC1E4160B80 for ; Fri, 17 Mar 2017 22:48:46 +0100 (CET) Received: (qmail 31159 invoked by uid 500); 17 Mar 2017 21:48:45 -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 31092 invoked by uid 99); 17 Mar 2017 21:48:45 -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, 17 Mar 2017 21:48:45 +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 9AC741A04EA for ; Fri, 17 Mar 2017 21:48:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] 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 EX9pVOU6ogBq for ; Fri, 17 Mar 2017 21:48:43 +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 3FED360CE2 for ; Fri, 17 Mar 2017 21:48:43 +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 F2C20E008E for ; Fri, 17 Mar 2017 21:48:41 +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 AE2C22434F for ; Fri, 17 Mar 2017 21:48:41 +0000 (UTC) Date: Fri, 17 Mar 2017 21:48:41 +0000 (UTC) From: "Paul Rogers (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Issue Comment Deleted] (DRILL-5364) Invalid MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 17 Mar 2017 21:48:47 -0000 [ https://issues.apache.org/jira/browse/DRILL-5364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Rogers updated DRILL-5364: ------------------------------- Comment: was deleted (was: Was: Planner inserts sort for simple constant value query Closing because this represented confusion on the submitter's part.) > Invalid > ------- > > Key: DRILL-5364 > URL: https://issues.apache.org/jira/browse/DRILL-5364 > Project: Apache Drill > Issue Type: Bug > Affects Versions: 1.10.0 > Reporter: Paul Rogers > Priority: Minor > > Consider the following query: > {code} > SELECT CURRENT_TIMESTAMP FROM (VALUES(1)) > {code} > The following is the plan generated for the query. Notice the inclusion of an unnecessary sort. > {code} > "graph" : [ { > "pop" : "Values", > "@id" : 4, > "content" : [ { > "EXPR$0" : { > "$numberLong" : 1 > } > } ], > "initialAllocation" : 1000000, > "maxAllocation" : 10000000000, > "cost" : 1.0 > }, { > "pop" : "project", > "@id" : 3, > "exprs" : [ { > "ref" : "`CURRENT_TIMESTAMP`", > "expr" : "current_timestamp() " > } ], > "child" : 4, > "initialAllocation" : 1000000, > "maxAllocation" : 10000000000, > "cost" : 1.0 > }, { > "pop" : "external-sort", > "@id" : 2, > "child" : 3, > "orderings" : [ { > "order" : "ASC", > "expr" : "`CURRENT_TIMESTAMP`", > "nullDirection" : "UNSPECIFIED" > } ], > "reverse" : false, > "initialAllocation" : 20000000, > "maxAllocation" : 10000000000, > "cost" : 1.0 > }, { > "pop" : "selection-vector-remover", > "@id" : 1, > "child" : 2, > "initialAllocation" : 1000000, > "maxAllocation" : 10000000000, > "cost" : 1.0 > }, { > "pop" : "screen", > "@id" : 0, > "child" : 1, > "initialAllocation" : 1000000, > "maxAllocation" : 10000000000, > "cost" : 1.0 > } ] > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)