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

Vihang Karajgaonkar commented on HIVE-18718:
--------------------------------------------

I think we will need changes to vectorized reader as well for this. Also can 
use Short.MAX_VALUE and Short.MIN_VALUE for smallint range checks instead of 
adding them in serdeConstants. I am not 100% sure but it seems to be that type 
max and min ranges are type implementation detail and should not be exposed via 
serdeConstants. This is in line with the varchar, char max lengths and max 
precision and max scale for decimal. I would recommend to not add the max and 
min range in serdeConstants.thrift so that future enhancements to types are not 
tied up.

> Integer like types throws error when there is a mismatch
> --------------------------------------------------------
>
>                 Key: HIVE-18718
>                 URL: https://issues.apache.org/jira/browse/HIVE-18718
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Janaki Lahorani
>            Assignee: Janaki Lahorani
>            Priority: Major
>             Fix For: 3.0.0
>
>         Attachments: HIVE-18718.1.patch
>
>
> If a value is saved with long type and read as int type it results in
> FAILED: Execution Error, return code 2 from 
> org.apache.hadoop.hive.ql.exec.mr.MapRedTask



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to