Return-Path: X-Original-To: apmail-incubator-drill-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-drill-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9EE7B10B2B for ; Tue, 25 Nov 2014 11:18:32 +0000 (UTC) Received: (qmail 84438 invoked by uid 500); 25 Nov 2014 11:18:27 -0000 Delivered-To: apmail-incubator-drill-dev-archive@incubator.apache.org Received: (qmail 84391 invoked by uid 500); 25 Nov 2014 11:18:27 -0000 Mailing-List: contact drill-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: drill-dev@incubator.apache.org Delivered-To: mailing list drill-dev@incubator.apache.org Delivered-To: moderator for drill-dev@incubator.apache.org Received: (qmail 37061 invoked by uid 99); 24 Nov 2014 22:05:49 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hzhu@maprtech.com designates 209.85.212.173 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=zqnadPORBBf1BdBhwHtGL1XRsZZKKPbDVSZCtn4QrAQ=; b=ctLFwckqE8ES2EiPB65xnkdMEuUXv/Odfi2MVrINjEesWGy/nS48YNGwaFYO8r9Sxu reaRForZdWfZTMH+EROpZciw5Ue+iWltXiRbGRM0yFbJMJDNq5TzCh7m7/aNdaXbla4d nVNXv/H2Hnk/iO2ACtyhqRjbhsm8ItFE5+wz0vlDZlaGv09FDkEUZ8ALzDp1G6yaav2e HS+fB1iwVeQFnn4Ea4ZncYVZt1nG3MAQCE/9lWdCEBUxqUXYLyW9qkUEJbd6Mk28Oh5G 3d6aBv90Cm/CI8nD+KlzkOTmHZ03qFSpi8YiYZxCq1qzVV1d94dAvJDwTMKikjp+Hsxg cGjw== X-Gm-Message-State: ALoCoQnaWB7Gd+fl1uhDlF5HYxAXoGNzyQmWirjVYODO+9P6qvXwqt51PUnJgCqB0fue/Lb7RPCe MIME-Version: 1.0 X-Received: by 10.180.104.234 with SMTP id gh10mr25098216wib.3.1416866676810; Mon, 24 Nov 2014 14:04:36 -0800 (PST) In-Reply-To: References: Date: Mon, 24 Nov 2014 14:04:36 -0800 Message-ID: Subject: Re: Create table with auto increment column From: Hao Zhu To: drill-user@incubator.apache.org Cc: drill-dev@incubator.apache.org, =?UTF-8?B?S2F6aSBTw6FuZG9y?= Content-Type: multipart/alternative; boundary=f46d04428f4af73be30508a1fa4b X-Virus-Checked: Checked by ClamAV on apache.org --f46d04428f4af73be30508a1fa4b Content-Type: text/plain; charset=UTF-8 Seems window functions are not in Drill yet. https://issues.apache.org/jira/browse/DRILL-1454 Thanks, Hao On Sat, Nov 22, 2014 at 6:50 AM, lapro1 wrote: > Hi, > I tried to create a table with auto increment column in drill, as I could > do it in hive before, but it dropped exception. I think I didn't write it > in adequate syntax. > > This was the query: > create table hive_hosts_with_rank(hostname, id) as select columns[0], > rank() over (order by columns[1]) from dfs.`/tmp/hosts/0_0_0.csv`; > > I got the exception: > ------------+------------+ > | ok | summary | > +------------+------------+ > | false | Error: Node [rel#5528:Subset#11.PHYSICAL.SINGLETON([]).[]] > coul | > +------------+------------+ > 1 row selected (0.956 seconds) > > > Does anybody know, how can I create a column like it, > > Thanks the answer in advance, > Laszlo > --f46d04428f4af73be30508a1fa4b--