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

Ashutosh Chauhan commented on HIVE-12320:
-----------------------------------------

Thats right and that indeed is intentional, since once you go to wider type 
going back to narrower type may give you wrong/corrupt/truncated data. Those 
are the cases which we want to prevent by default. But, if user still wants 
narrower type he can chose to set config to false to do it.

> hive.metastore.disallow.incompatible.col.type.changes should be true by 
> default
> -------------------------------------------------------------------------------
>
>                 Key: HIVE-12320
>                 URL: https://issues.apache.org/jira/browse/HIVE-12320
>             Project: Hive
>          Issue Type: Improvement
>          Components: Configuration, Types
>    Affects Versions: 0.12.0, 0.13.0, 0.14.0, 1.0.0, 1.2.0, 1.1.0
>            Reporter: Ashutosh Chauhan
>            Assignee: Ashutosh Chauhan
>         Attachments: HIVE-12320.2.patch, HIVE-12320.3.patch, HIVE-12320.patch
>
>
> By default all types of schema changes are permitted. This config adds 
> capability to disallow incompatible column type changes. This should be on by 
> default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to