[ https://issues.apache.org/jira/browse/HIVE-20817?focusedWorklogId=474106&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-474106 ]
ASF GitHub Bot logged work on HIVE-20817: ----------------------------------------- Author: ASF GitHub Bot Created on: 25/Aug/20 00:40 Start Date: 25/Aug/20 00:40 Worklog Time Spent: 10m Work Description: github-actions[bot] commented on pull request #1179: URL: https://github.com/apache/hive/pull/1179#issuecomment-679436133 This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Feel free to reach out on the d...@hive.apache.org list if the patch is in need of reviews. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 474106) Time Spent: 40m (was: 0.5h) > Reading Timestamp datatype via HiveServer2 gives errors > ------------------------------------------------------- > > Key: HIVE-20817 > URL: https://issues.apache.org/jira/browse/HIVE-20817 > Project: Hive > Issue Type: Bug > Components: Hive > Affects Versions: 4.0.0 > Reporter: mahesh kumar behera > Assignee: mahesh kumar behera > Priority: Major > Labels: pull-request-available > Fix For: 4.0.0 > > Attachments: HIVE-20817.01.patch, HIVE-20817.02.patch > > Time Spent: 40m > Remaining Estimate: 0h > > CREATE TABLE JdbcBasicRead ( empno int, desg string,empname string,doj > timestamp,Salary float,mgrid smallint, deptno tinyint ) ROW FORMAT DELIMITED > FIELDS TERMINATED BY ','; > LOAD DATA LOCAL INPATH '/tmp/art_jdbc/hive/input/input_7columns.txt' > OVERWRITE INTO TABLE JdbcBasicRead; > Sample Data. > — > 7369,M,SMITH,1980-12-17 17:07:29.234234,5000.00,7902,20 > 7499,X,ALLEN,1981-02-20 17:07:29.234234,1250.00,7698,30 > 7521,X,WARD,1981-02-22 17:07:29.234234,01600.57,7698,40 > 7566,M,JONES,1981-04-02 17:07:29.234234,02975.65,7839,10 > 7654,X,MARTIN,1981-09-28 17:07:29.234234,01250.00,7698,20 > 7698,M,BLAKE,1981-05-01 17:07:29.234234,2850.98,7839,30 > 7782,M,CLARK,1981-06-09 17:07:29.234234,02450.00,7839,20 > — > Select statement: SELECT empno, desg, empname, doj, salary, mgrid, deptno > FROM JdbcBasicWrite > {code} > 2018-09-25T07:11:03,222 WARN [HiveServer2-Handler-Pool: Thread-83]: > thrift.ThriftCLIService (:()) - Error fetching results: > org.apache.hive.service.cli.HiveSQLException: java.lang.ClassCastException: > org.apache.hadoop.hive.common.type.Timestamp cannot be cast to > java.sql.Timestamp > at > org.apache.hive.service.cli.operation.SQLOperation.getNextRowSet(SQLOperation.java:469) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at > org.apache.hive.service.cli.operation.OperationManager.getOperationNextRowSet(OperationManager.java:328) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at > org.apache.hive.service.cli.session.HiveSessionImpl.fetchResults(HiveSessionImpl.java:910) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source) ~[?:?] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[?:1.8.0_112] > at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112] > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at > org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at > org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_112] > at javax.security.auth.Subject.doAs(Subject.java:422) ~[?:1.8.0_112] > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > ~[hadoop-common-3.1.1.3.0.1.0-187.jar:?] > at > org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at com.sun.proxy.$Proxy46.fetchResults(Unknown Source) ~[?:?] > at org.apache.hive.service.cli.CLIService.fetchResults(CLIService.java:564) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at > org.apache.hive.service.cli.thrift.ThriftCLIService.FetchResults(ThriftCLIService.java:786) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$FetchResults.getResult(TCLIService.java:1837) > ~[hive-exec-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at > org.apache.hive.service.rpc.thrift.TCLIService$Processor$FetchResults.getResult(TCLIService.java:1822) > ~[hive-exec-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > ~[hive-exec-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > ~[hive-exec-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at > org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at > org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286) > ~[hive-exec-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > ~[?:1.8.0_112] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > ~[?:1.8.0_112] > at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] > Caused by: java.lang.ClassCastException: > org.apache.hadoop.hive.common.type.Timestamp cannot be cast to > java.sql.Timestamp > at > org.apache.hive.service.cli.ColumnValue.toTColumnValue(ColumnValue.java:203) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at org.apache.hive.service.cli.RowBasedSet.addRow(RowBasedSet.java:60) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at org.apache.hive.service.cli.RowBasedSet.addRow(RowBasedSet.java:32) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at > org.apache.hive.service.cli.operation.SQLOperation.prepareFromRow(SQLOperation.java:517) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at > org.apache.hive.service.cli.operation.SQLOperation.decode(SQLOperation.java:509) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > at > org.apache.hive.service.cli.operation.SQLOperation.getNextRowSet(SQLOperation.java:463) > ~[hive-service-3.1.0.3.0.1.0-187.jar:3.1.0.3.0.1.0-187] > ... 24 more > 2018-09-25T07:11:03,232 INFO [HiveServer2-Handler-Pool: Thread-83]: > thrift.ThriftCLIService (:()) - Session disconnected without closing properly. > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)