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

Travis Crawford updated HCATALOG-443:
-------------------------------------

    Attachment: HCATALOG-443_api_to_metadata_deserializer.4.patch

Updated patch to allow conversion of boolean fields to integer. This is enabled 
by setting the field schema to integer. By default booleans are treated as 
boolean.

This is useful for integration with pre-boolean-support pig environments.
                
> Serde-reported schema support, enums as strings, misc fixes
> -----------------------------------------------------------
>
>                 Key: HCATALOG-443
>                 URL: https://issues.apache.org/jira/browse/HCATALOG-443
>             Project: HCatalog
>          Issue Type: Bug
>            Reporter: Travis Crawford
>            Assignee: Travis Crawford
>         Attachments: HCATALOG-443_api_to_metadata_deserializer.1.patch, 
> HCATALOG-443_api_to_metadata_deserializer.2.patch, 
> HCATALOG-443_api_to_metadata_deserializer.3.patch, 
> HCATALOG-443_api_to_metadata_deserializer.4.patch
>
>
> This issue is related to HIVE-2950.
> When HCatalog queries the HiveMetaStore it gets back classes in the 
> "org.apache.hadoop.hive.metastore.api" package. This represents exactly what 
> is stored in the metastore database.
> Hive has companion classes in "org.apache.hadoop.hive.ql.metadata" that 
> provide some logic on top of what's stored in the actual database. For 
> example:
> * org.apache.hadoop.hive.metastore.api.Table.getCols shows columns explicitly 
> stored in the database
> * org.apache.hadoop.hive.ql.metadata.Table.getCols shows columns reported by 
> the serde if there are any.
> Except when serializing stuff into the job configuration HCatalog should use 
> the "metadata" version of these classes so that the additional logic is 
> called.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to