[
https://issues.apache.org/jira/browse/HIVE-22080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16901579#comment-16901579
]
Jason Dere commented on HIVE-22080:
-----------------------------------
Just wanted to call out, the previous behavior had special cases where string
=> double/decimal conversion was allowed while the other numeric types were
disallowed, with hive.metastore.disallow.incompatible.col.type.changes=true.
This just makes the conversion behavior consistent (disallowed) for all numeric
types.
Users can always set
hive.metastore.disallow.incompatible.col.type.changes=false if they want to be
able to change the column type from string to numeric type.
> Prevent implicit conversion from String/char/varchar to double/decimal
> ----------------------------------------------------------------------
>
> Key: HIVE-22080
> URL: https://issues.apache.org/jira/browse/HIVE-22080
> Project: Hive
> Issue Type: Bug
> Components: Hive
> Affects Versions: 4.0.0
> Reporter: Ramesh Kumar Thangarajan
> Assignee: Ramesh Kumar Thangarajan
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Attachments: HIVE-22080.1.patch, HIVE-22080.2.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Implicit conversion from String family types to any non-string family types
> are invalid. User can force the conversion by turning off the setting
> hive.metastore.disallow.incompatible.col.type.changes. If not turned off,
> such a conversion should throw error.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)