Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5446

Retrieving clob values from Exasol prints stacktrace to server log

    Details

      Description

      In Exasol, CLOB is an alias for VARCHAR. When querying a foreign table with a CLOB column defined as

      ObjectValue clob OPTIONS (NATIVE_TYPE 'varchar(4000)', NAMEINSOURCE 'objectvalue')) 
      

      ,

      an exception is logged in the server output for each row.

      The query itself finishes successfully and the returned results are correct.

      12:44:20,959 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr java.lang.Throwable
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at com.exasol.jdbc.Column.type_error(Column.java:26)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at com.exasol.jdbc.Column.getClob(Column.java:137)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at com.exasol.jdbc.EXAResultSet.getClob(EXAResultSet.java:686)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at org.jboss.jca.adapters.jdbc.WrappedResultSet.getClob(WrappedResultSet.java:1060)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at org.teiid.translator.jdbc.JDBCExecutionFactory.retrieveValue(JDBCExecutionFactory.java:1146)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at org.teiid.translator.jdbc.JDBCQueryExecution.next(JDBCQueryExecution.java:340)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.handleBatch(ConnectorWorkItem.java:455)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.more(ConnectorWorkItem.java:241)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at java.lang.reflect.Method.invoke(Method.java:498)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at org.teiid.dqp.internal.datamgr.ConnectorManager$1.invoke(ConnectorManager.java:229)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at com.sun.proxy.$Proxy36.more(Unknown Source)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:305)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:108)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:104)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at org.teiid.dqp.internal.process.FutureWork.run(FutureWork.java:61)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:277)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:115)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:206)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      12:44:20,960 ERROR [stderr] (Worker6_QueryProcessorQueue42) axblivLlwkmr        at java.lang.Thread.run(Thread.java:748)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shawkins Steven Hawkins
                Reporter:
                asmigala Andrej Smigala
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: