Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
You should be able to see this in TestHCatStorer.testStoreFuncAllSimpleTypes. First a Hive table is created with 8 columns. Then HCatStorer is used to populate the table, but Pig relation only has data for the first 7 columns of the table. When HCat initializes the SerDe for writing the table, the schema only contains 7 columns rather than the 8 that the table should have. This test works without any errors, but gets an error if the table is changed to ORC storage (which can be fixed by HIVE-4975).
HCat should initialize the Serde with the full number of columns in the table, and should fill in NULLs for any columns which are not provided by Pig relation.