Rahul Challapalli created DRILL-4075:
----------------------------------------

             Summary: Assertion Error in PruneScanRule when querying empty 
partitioned hive tables
                 Key: DRILL-4075
                 URL: https://issues.apache.org/jira/browse/DRILL-4075
             Project: Apache Drill
          Issue Type: Bug
          Components: Query Planning & Optimization, Storage - Hive
    Affects Versions: 1.3.0
            Reporter: Rahul Challapalli
         Attachments: error.log

git.commit.id.abbrev=e78e286

Hive DDL :
{code}
CREATE TABLE empty_p (
    int_col INT
   )
PARTITIONED BY (varchar_col STRING)
ROW FORMAT DELIMITED FIELDS TERMINATED BY "|"
STORED AS TEXTFILE LOCATION "/drill/testdata/empty_p";
{code}

The above table is empty. Now the below query fails with an assertion error
{code}
explain plan for select * from hive.empty_lengthy_p where varchar_col is null;
Error: SYSTEM ERROR: AssertionError


[Error Id: d9e8c786-0ff9-4ccc-96aa-cbc7adbd7e03 on qa-node190.qa.lab:31010] 
(state=,code=0)
{code}

Logs are attached



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

Reply via email to