You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Jason Dere (JIRA)" <ji...@apache.org> on 2014/03/28 01:43:14 UTC

[jira] [Created] (HIVE-6769) HCatStorer can initialize SerDe with less columns than table definition if PigSchema has less columns

Jason Dere created HIVE-6769:
--------------------------------

             Summary: HCatStorer can initialize SerDe with less columns than table definition if PigSchema has less columns
                 Key: HIVE-6769
                 URL: https://issues.apache.org/jira/browse/HIVE-6769
             Project: Hive
          Issue Type: Bug
          Components: HCatalog
            Reporter: Jason Dere


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)