prestodb / presto

The official home of the Presto distributed SQL query engine for big data
http://prestodb.io
Apache License 2.0
16.04k stars 5.37k forks source link

java.lang.UnsupportedOperationException: getType #13147

Closed newluhuibiao closed 2 years ago

newluhuibiao commented 5 years ago

In SpringMVC and Mybatis Project,presto-jdbc is 0.85,jdk is 7.0,but error is below:

SQL: select alarmindex.parentorgname,alarmindex.orgname,alarmindex.indextype,alarmindex.day,alarmindex.indexvalue from bimarketnet.dayalarmindex alarmindex

Cause: java.lang.UnsupportedOperationException: getType

at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:26)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:111)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:434)
... 79 more

Caused by: java.lang.UnsupportedOperationException: getType at com.facebook.presto.jdbc.PrestoResultSet.getType(PrestoResultSet.java:746)

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had any activity in the last 2 years. If you feel that this issue is important, just comment and the stale tag will be removed; otherwise it will be closed in 7 days. This is an attempt to ensure that our open issues remain valuable and relevant so that we can keep track of what needs to be done and prioritize the right things.