Aihua Xu created HIVE-14337:
-------------------------------

             Summary: Skewed table stored as DIRECTORIES throws IOException for 
simple query
                 Key: HIVE-14337
                 URL: https://issues.apache.org/jira/browse/HIVE-14337
             Project: Hive
          Issue Type: Bug
          Components: Query Planning
            Reporter: Aihua Xu
            Assignee: Aihua Xu


CREATE TABLE list_bucket_single (key STRING, value STRING)
  SKEWED BY (key) ON (1,5,6) STORED AS DIRECTORIES;

insert into list_bucket_single values('1', '1');

select * from list_bucket_single;

It will throw IOException Failed with exception 
java.io.IOException:java.io.IOException: Not a file: 
file:/user/hive/warehouse/list_bucket_single/HIVE_DEFAULT_LIST_BUCKETING_DIR_NAME.

Seems it's not handling the folder when it's created with 'STORED AS 
DIRECTORIES'.



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

Reply via email to