Gang Tim Liu created HIVE-3506:
----------------------------------

             Summary: CombineHiveInputFormat doesn't support sub-directory in 
input path
                 Key: HIVE-3506
                 URL: https://issues.apache.org/jira/browse/HIVE-3506
             Project: Hive
          Issue Type: Bug
            Reporter: Gang Tim Liu


If hive.input.format is org.apache.hadoop.hive.ql.io.CombineHiveInputFormat, 
the following test will fail with java.io.FileNotFoundException: ... (No such 
file or directory)

– INCLUDE_HADOOP_MAJOR_VERSIONS(0.23)

CREATE TABLE fact_daily(x int) PARTITIONED BY (ds STRING);
CREATE TABLE fact_tz(x int) PARTITIONED BY (ds STRING, hr STRING)
LOCATION 'pfile:${system:test.tmp.dir}/fact_tz';

INSERT OVERWRITE TABLE fact_tz PARTITION (ds='1', hr='1')
SELECT key+11 FROM src WHERE key=484;

ALTER TABLE fact_daily SET TBLPROPERTIES('EXTERNAL'='TRUE');
ALTER TABLE fact_daily ADD PARTITION (ds='1')
LOCATION 'pfile:${system:test.tmp.dir}/fact_tz/ds=1';

set mapred.input.dir.recursive=true;
SELECT * FROM fact_daily WHERE ds='1';

SELECT count(1) FROM fact_daily WHERE ds='1';

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to