hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (Jira)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-22431) Hive JDBC Storage Handler: java.lang.ClassCastException on accessing TINYINT, SMALLINT Data Type From JDBC Data Source
Date Thu, 31 Oct 2019 16:17:00 GMT

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

Hive QA commented on HIVE-22431:
--------------------------------

| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:red}-1{color} | {color:red} patch {color} | {color:red}  0m 18s{color} | {color:red}
/data/hiveptest/logs/PreCommit-HIVE-Build-19231/patches/PreCommit-HIVE-Build-19231.patch does
not apply to master. Rebase required? Wrong Branch? See http://cwiki.apache.org/confluence/display/Hive/HowToContribute
for help. {color} |
\\
\\
|| Subsystem || Report/Notes ||
| Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-19231/yetus.txt |
| Powered by | Apache Yetus    http://yetus.apache.org |


This message was automatically generated.



> 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)

Mime
View raw message