Description
count(*) on a table written by hcatstorer returns wrong result.
steps to repro the issue:
1) create hive table
create table ${DEST_TABLE}(name string, age int, gpa float) row format delimited fields terminated by '\t' stored as textfile;
2) load data into table using hcatstorer
A = LOAD '$DATA_1' USING PigStorage() AS (name:chararray, age:int, gpa:float); B = LOAD '$DATA_2' USING PigStorage() AS (name:chararray, age:int, gpa:float); C = UNION A, B; STORE C INTO '$HIVE_TABLE' USING org.apache.hive.hcatalog.pig.HCatStorer();