You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Rahul Challapalli (JIRA)" <ji...@apache.org> on 2015/05/02 02:13:06 UTC

[jira] [Closed] (DRILL-735) Drill fails when querying hive tables which have a varchar dataype

     [ https://issues.apache.org/jira/browse/DRILL-735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rahul Challapalli closed DRILL-735.
-----------------------------------

Verified and added the below case

Functional/Passing/views/query_DRILL-735.q

> Drill fails when querying hive tables which have a varchar dataype
> ------------------------------------------------------------------
>
>                 Key: DRILL-735
>                 URL: https://issues.apache.org/jira/browse/DRILL-735
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Hive
>            Reporter: Rahul Challapalli
>            Assignee: DrillCommitter
>             Fix For: 0.4.0
>
>         Attachments: DRILL-735-1.patch
>
>
> Create a hive table
> DROP TABLE IF EXISTS HIVESTUDENTS;
> CREATE EXTERNAL TABLE HIVESTUDENTS
> (
>     ID VARCHAR(24),
>     NAME VARCHAR(24),
>     STREET VARCHAR(256),
>     ZIPCODE INT,
>     STATE VARCHAR(20),
>     PERCENTAGE DECIMAL
> )
> ROW FORMAT DELIMITED FIELDS
> TERMINATED BY ','
> STORED AS TEXTFILE LOCATION "/drill/testdata/students/";
> 2. Make sure the queries are working fine in hive
> 3. Query from drill :
>         select count(*) from hive.hivestudents;
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "a90db583-9a1c-48b1-9b04-e72014e76f28"
> endpoint {
>   address: "qa-node190.qa.lab"
>   user_port: 31010
>   control_port: 31011
>   data_port: 31012
> }
> error_type: 0
> message: "Failure while parsing sql. < UnsupportedOperationException:[ Could not determine type: VARCHAR ]"
> ]
> Error: exception while executing query (state=,code=0)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)