Namit Jain created HIVE-4272:
--------------------------------

             Summary: partition wise metadata does not work for text files
                 Key: HIVE-4272
                 URL: https://issues.apache.org/jira/browse/HIVE-4272
             Project: Hive
          Issue Type: Bug
          Components: Query Processor
            Reporter: Namit Jain
            Assignee: Namit Jain


The following test fails:

set hive.input.format = org.apache.hadoop.hive.ql.io.CombineHiveInputFormat;

-- This tests that the schema can be changed for binary serde data
create table partition_test_partitioned(key string, value string)
partitioned by (dt string) stored as textfile;
insert overwrite table partition_test_partitioned partition(dt='1')
select * from src where key = 238;

select * from partition_test_partitioned where dt is not null;
select key+key, value from partition_test_partitioned where dt is not null;

alter table partition_test_partitioned change key key int;

select key+key, value from partition_test_partitioned where dt is not null;
select * from partition_test_partitioned where dt is not null;

It works fine for a RCFile

--
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