You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Eugene Koifman (JIRA)" <ji...@apache.org> on 2014/03/27 21:03:16 UTC

[jira] [Updated] (HIVE-6766) HCatLoader always returns Char datatype with maxlength(255) when table format is ORC

     [ https://issues.apache.org/jira/browse/HIVE-6766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eugene Koifman updated HIVE-6766:
---------------------------------

    Attachment: HIVE-6766.patch

ensured that when DefaultRecordWriterContainer constructs an ObjectInspector, it creates PrimitiveObjectInspectors based on type (char(5)) rather than category.

> HCatLoader always returns Char datatype with maxlength(255)  when table format is ORC
> -------------------------------------------------------------------------------------
>
>                 Key: HIVE-6766
>                 URL: https://issues.apache.org/jira/browse/HIVE-6766
>             Project: Hive
>          Issue Type: Bug
>          Components: HCatalog
>    Affects Versions: 0.13.0
>            Reporter: Eugene Koifman
>            Assignee: Eugene Koifman
>            Priority: Critical
>         Attachments: HIVE-6766.patch
>
>
> attached patch contains
> org.apache.hive.hcatalog.pig.TestOrcHCatPigStorer#testWriteChar()
> which shows that char(5) value written to Hive (ORC) table using HCatStorer will come back as char(255) when read with HCatLoader.



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