[ https://issues.apache.org/jira/browse/HIVE-22431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16964237#comment-16964237 ]
Hive QA commented on HIVE-22431: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12984432/HIVE-22431.02.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:green}SUCCESS:{color} +1 due to 17546 tests passed Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/19231/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/19231/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-19231/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase {noformat} This message is automatically generated. ATTACHMENT ID: 12984432 - PreCommit-HIVE-Build > Hive JDBC Storage Handler: java.lang.ClassCastException on accessing TINYINT, > SMALLINT Data Type From JDBC Data Source > ---------------------------------------------------------------------------------------------------------------------- > > Key: HIVE-22431 > URL: https://issues.apache.org/jira/browse/HIVE-22431 > Project: Hive > Issue Type: Bug > Components: StorageHandler > Reporter: Syed Shameerur Rahman > Assignee: Syed Shameerur Rahman > Priority: Major > Labels: pull-request-available > Fix For: 4.0.0 > > Attachments: HIVE-22431.01.patch, HIVE-22431.02.patch > > > Steps to Reproduce: > {code:java} > //MySQL table: > create table testtbl(a TINYINT, b SMALLINT); > // Insert to table via mysql connector > //Hive table: > CREATE EXTERNAL TABLE `hive_table`( > a TINYINT, b SMALLINT > ) > STORED BY > 'org.apache.hive.storage.jdbc.JdbcStorageHandler' > TBLPROPERTIES ( > > 'hive.sql.database.type'='MYSQL', > 'hive.sql.dbcp.password'='', > 'hive.sql.dbcp.username'='', > 'hive.sql.jdbc.driver'='com.mysql.jdbc.Driver', > 'hive.sql.jdbc.url'='', > 'hive.sql.table'='testtbl'); > //Hive query: > select * from hive_table; > {code} > *Failed with exception > java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: > java.lang.ClassCastException: java.lang.Integer cannot be cast to > java.lang.Byte* > *Failed with exception > java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: > java.lang.ClassCastException: java.lang.Integer cannot be cast to > java.lang.Short* > {code:java} > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)