drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramana Inukonda Nagaraj (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-797) resultSet.getMetaData().getColumnType for column of type timestamp returns date
Date Wed, 21 May 2014 18:01:47 GMT
Ramana Inukonda Nagaraj created DRILL-797:
---------------------------------------------

             Summary: resultSet.getMetaData().getColumnType for column of type timestamp returns
date
                 Key: DRILL-797
                 URL: https://issues.apache.org/jira/browse/DRILL-797
             Project: Apache Drill
          Issue Type: Bug
          Components: Client - JDBC
            Reporter: Ramana Inukonda Nagaraj


if (resultSet.getMetaData().getColumnType(i) == Types.DATE) {

              builder.append(resultSet.getDate(i) + "\t");

Results in an exception
org.apache.drill.exec.vector.accessor.AbstractSqlAccessor$InvalidAccessException: Requesting
class of type Date for an object of type TIMESTAMP:REQUIRED is not allowed.
        at org.apache.drill.exec.vector.accessor.AbstractSqlAccessor.getDate(AbstractSqlAccessor.java:57)
        at org.apache.drill.exec.vector.accessor.TimeStampAccessor.getDate(TimeStampAccessor.java:83)
        at org.apache.drill.jdbc.AvaticaDrillSqlAccessor.getDate(AvaticaDrillSqlAccessor.java:171)
        at net.hydromatic.avatica.AvaticaResultSet.getDate(AvaticaResultSet.java:231)
        at org.apache.drill.test.framework.QuerySubmitter.submitQueryJDBC(QuerySubmitter.java:107)
        at org.apache.drill.test.framework.DrillTestBase$RunThread.run(DrillTestBase.java:262)

git.commit.id.abbrev=5d7e3d3



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message