[ https://issues.apache.org/jira/browse/HIVE-5545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14523759#comment-14523759 ]
Sushanth Sowmyan commented on HIVE-5545: ---------------------------------------- It'll throw a runtime error, then, but that should happen before the section of code added here - it'll throw from ExpressionTree saying that this is not a valid type (non-integral(or integral, but METASTORE_INTEGER_JDO_PUSHDOWN is not set) and non-string) when fetching the requisite partitions. If it gets past that area for whatever reason, but is not able to convert here, then a runtime error is appropriate, and is no worse than what already happens. > HCatRecord getInteger method returns String when used on Partition columns of > type INT > -------------------------------------------------------------------------------------- > > Key: HIVE-5545 > URL: https://issues.apache.org/jira/browse/HIVE-5545 > Project: Hive > Issue Type: Bug > Components: HCatalog > Affects Versions: 0.11.0 > Environment: hadoop-1.0.3 > Reporter: Rishav Rohit > Assignee: Sushanth Sowmyan > Attachments: HIVE-5545.patch > > > HCatRecord getInteger method returns String when used on Partition columns of > type INT. > java.lang.ClassCastException: java.lang.String cannot be cast to > java.lang.Integer -- This message was sent by Atlassian JIRA (v6.3.4#6332)