[ 
https://issues.apache.org/jira/browse/HIVE-5814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13891165#comment-13891165
 ] 

Sushanth Sowmyan commented on HIVE-5814:
----------------------------------------

I see.

Yes, agreed, using toString() and valueOf as-is should be unacceptable, and we 
should modify LazySimpleSerDe/etc to that effect (not needed in this jira, 
let's not bundle still more changes here)

> Add DATE, TIMESTAMP, DECIMAL, CHAR, VARCHAR types support in HCat
> -----------------------------------------------------------------
>
>                 Key: HIVE-5814
>                 URL: https://issues.apache.org/jira/browse/HIVE-5814
>             Project: Hive
>          Issue Type: New Feature
>          Components: HCatalog
>    Affects Versions: 0.12.0
>            Reporter: Eugene Koifman
>            Assignee: Eugene Koifman
>         Attachments: HCat-Pig Type Mapping Hive 0.13.pdf, HIVE-5814.2.patch, 
> HIVE-5814.3.patch, HIVE-5814.4.patch, HIVE-5814.5.patch
>
>
> Hive 0.12 added support for new data types.  Pig 0.12 added some as well.  
> HCat should handle these as well.    Also note that CHAR was added recently.
> Also allow user to specify a parameter in Pig like so HCatStorer('','', 
> '-onOutOfRangeValue Throw') to control what happens when Pig's value is out 
> of range for target Hive column.  Valid values for the option are Throw and 
> Null.  Throw - make the runtime raise an exception, Null, which is the 
> default, means NULL is written to target column and a message to that effect 
> is emitted to the log.  Only 1 message per column/data type is sent to the 
> log.
> See attached HCat-Pig Type Mapping Hive 0.13.pdf for exact mappings.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to