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 7A26A200B92 for ; Wed, 28 Sep 2016 19:01:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 78A0C160AD3; Wed, 28 Sep 2016 17:01:57 +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 BE4C1160AB8 for ; Wed, 28 Sep 2016 19:01:56 +0200 (CEST) Received: (qmail 40006 invoked by uid 500); 28 Sep 2016 17:01:55 -0000 Mailing-List: contact dev-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 dev@drill.apache.org Received: (qmail 39995 invoked by uid 99); 28 Sep 2016 17:01:55 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2016 17:01:55 +0000 Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 8C6DB1A0251 for ; Wed, 28 Sep 2016 17:01:55 +0000 (UTC) Received: by mail-oi0-f52.google.com with SMTP id r126so61267784oib.0 for ; Wed, 28 Sep 2016 10:01:55 -0700 (PDT) X-Gm-Message-State: AA6/9Rm0cqA+sb2XxXCAu+7iZn0oreQirWYZVC+rXf0HTiUrFeeCWe1gVQJIdoQvMmU8+thJsxvoLZf2vijeSg== X-Received: by 10.157.46.4 with SMTP id q4mr3719087otb.46.1475082114838; Wed, 28 Sep 2016 10:01:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.59.225 with HTTP; Wed, 28 Sep 2016 10:01:54 -0700 (PDT) In-Reply-To: References: From: Jinfeng Ni Date: Wed, 28 Sep 2016 10:01:54 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: select count(1) : Cannot convert Indexed schema to NamePart To: dev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable archived-at: Wed, 28 Sep 2016 17:01:57 -0000 I tried to query a regular csv file and a csv.gz file, and did not run into the problem you saw. When you create a JIRA, it would be helpful if you can share a sample file for re-produce purpose. On Wed, Sep 28, 2016 at 9:33 AM, Aman Sinha wrote: > Is this specific to CSV format files ? Yes, you should create a JIRA for > this. Thanks for reporting. > > On Wed, Sep 28, 2016 at 8:55 AM, Fran=C3=A7ois M=C3=A9thot > wrote: > >> Hi, >> >> Since release 1.8, >> >> we have a workspace hdfs.datarepo1 mapped to >> /year/month/day/ >> containging csv.gz >> >> if we do select count(1) on any level of the dir structure like >> select count(1) from hdfs.datarepo1.`/2016/08`; >> We get >> Error: SYSTEM ERROR: IllegalStateException: You cannot convert a >> indexed schema path to a NamePart. NameParts can only reference Vector= s, >> not individual records or values. >> >> same error with >> select count(1) from hdfs.datarepo1.`/` where dir0=3D2016 and dir1=3D= 08; >> >> >> While this query works (or any select column) >> select count(column1) from hdfs.datarepo1.`/2016/08`; >> >> >> Should I create a ticket? >> >> >> Francois >>