Return-Path: X-Original-To: apmail-incubator-drill-user-archive@minotaur.apache.org Delivered-To: apmail-incubator-drill-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B77611BC3 for ; Mon, 21 Apr 2014 17:33:05 +0000 (UTC) Received: (qmail 50428 invoked by uid 500); 21 Apr 2014 17:33:04 -0000 Delivered-To: apmail-incubator-drill-user-archive@incubator.apache.org Received: (qmail 50384 invoked by uid 500); 21 Apr 2014 17:33:04 -0000 Mailing-List: contact drill-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: drill-user@incubator.apache.org Delivered-To: mailing list drill-user@incubator.apache.org Received: (qmail 50375 invoked by uid 99); 21 Apr 2014 17:33:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Apr 2014 17:33:03 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_IMAGE_ONLY_24,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_REMOTE_IMAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sphillips@maprtech.com designates 209.85.216.182 as permitted sender) Received: from [209.85.216.182] (HELO mail-qc0-f182.google.com) (209.85.216.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Apr 2014 17:32:59 +0000 Received: by mail-qc0-f182.google.com with SMTP id e16so4310486qcx.27 for ; Mon, 21 Apr 2014 10:32:38 -0700 (PDT) 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=J5Apq/6WwNa/7u6svjzg2io1wBhecIp9SaVtO+xQ1zo=; b=ZPwSWQuIUaaCH1KaSW9ermc8tvPsFNB1cDBrlQhwYZsG7Brv67chCNr4Tn3j3u4cA5 PdAaMNGDjEdjbllOBbM1FN8mAeMEW1Y/IyYHytkp16kBQpWgiEO4079+LihFQElSRj7F TODxpuQLl+WiffVDHXBoZ40XEm3ekqJN4ae/7htw7f6/D7i5R+998bcRFL60Z3Dmpzoc fWPokEM9br3syWo25CHWmNxCfXU9TvLCBWKTAPsZb3Vz3pZXCGMWUR2XFlGQ64UA83Hi T5gHQAzKapRkhmzieNnH9m1nMDHkd2QZYTgH+0DK4IVdN2Az6i97h7OdyQ/wRtL/ijmw AJyg== X-Gm-Message-State: ALoCoQnx3+ix1zarpiERoP1KfOQG7gwpXLhFykJ5XyMfGCPuY3nITOJJJrx3Rr5OH7Zz80laPoSi MIME-Version: 1.0 X-Received: by 10.224.147.77 with SMTP id k13mr41130843qav.64.1398101558822; Mon, 21 Apr 2014 10:32:38 -0700 (PDT) Received: by 10.140.105.11 with HTTP; Mon, 21 Apr 2014 10:32:38 -0700 (PDT) In-Reply-To: References: Date: Mon, 21 Apr 2014 10:32:38 -0700 Message-ID: Subject: Re: insert and query from hbase table From: Steven Phillips To: "drill-dev@incubator.apache.org" Cc: Apache Drill User Content-Type: multipart/alternative; boundary=089e0149cda0c6377004f790e285 X-Virus-Checked: Checked by ClamAV on apache.org --089e0149cda0c6377004f790e285 Content-Type: text/plain; charset=ISO-8859-1 You will need to put backticks around the column name, like so: select `cf.a` from hbasetest.test; The reason for this is currently that currently, without backticks, the parser interprets cf as the table name. insert statements are currently not supported. On Mon, Apr 21, 2014 at 9:46 AM, Firas Khasawneh wrote: > Hi all, > > > > I created a table in hbase and I tried to insert values and query from that > table but I am not able to find how I can specify column family name in an > insert or select statements. Below are more details: > > > > 0: jdbc:drill:schema=hbasetest> select * from hbasetest.test; > > +------------+------------+ > > | row_key | cf.a | > > +------------+------------+ > > | [B@c57cac7 | [B@57c1d525 | > > +------------+------------+ > > 1 row selected (0.08 seconds) > > > > > > Select cf.a from hbasetest.test does not work I tried cf:a and nothing > worked. > > > > insert into hbasetest.test values('row2','value2'); fails also/ I get the > following message: "Failure while parsing sql. < ValidationException:[ > org.eigenbase.util.EigenbaseContextException: From line 1, column 23 to > line 1, column 26 ] < EigenbaseContextException:[ From line 1, column 23 to > line 1, column 26 ] < SqlValidatorException:[ Number of INSERT target > columns (1) does not equal number of source items (2) ]" > > > > I tried many combinations but nothing worked. I am not able to find any > docs also on sql syntax fro Drill. > > > > Thanks, > > Firas > -- Steven Phillips Software Engineer mapr.com --089e0149cda0c6377004f790e285--