-
Bug
-
Resolution: Done
-
Critical
-
14.0
-
None
-
-
Undefined
Running a query with UPPER on a MSSQL will result to a NPE:
--run select statement SELECT "warning" ,"count" ,upper(warning) FROM views.rain ;;
2020-10-23 15:40:54,105 ERROR [org.teiid.CONNECTOR] (Worker2_QueryProcessorQueue9) uDna4ntt7KV7 Connector worker process failed for atomic-request=uDna4ntt7KV7.2.2.0: java.lang.NullPointerException at org.teiid.translator.jdbc.sqlserver.SQLServerExecutionFactory$UpperLowerFunctionModifier.translate(SQLServerExecutionFactory.java:116) at org.teiid.translator.jdbc.JDBCExecutionFactory.translate(JDBCExecutionFactory.java:548) at org.teiid.translator.jdbc.sybase.BaseSybaseExecutionFactory.translate(BaseSybaseExecutionFactory.java:96) at org.teiid.translator.jdbc.sqlserver.SQLServerExecutionFactory.translate(SQLServerExecutionFactory.java:322) at org.teiid.translator.jdbc.SQLConversionVisitor.append(SQLConversionVisitor.java:108) at org.teiid.language.visitor.SQLStringVisitor.visit(SQLStringVisitor.java:863) at org.teiid.translator.jdbc.SQLConversionVisitor.visit(SQLConversionVisitor.java:313) at org.teiid.language.DerivedColumn.acceptVisitor(DerivedColumn.java:43) at org.teiid.language.visitor.AbstractLanguageVisitor.visitNode(AbstractLanguageVisitor.java:47) at org.teiid.language.visitor.SQLStringVisitor.append(SQLStringVisitor.java:90) at org.teiid.translator.jdbc.SQLConversionVisitor.append(SQLConversionVisitor.java:127) at org.teiid.language.visitor.SQLStringVisitor.append(SQLStringVisitor.java:105) at org.teiid.language.visitor.SQLStringVisitor.visit(SQLStringVisitor.java:796) at org.teiid.language.Select.acceptVisitor(Select.java:106) at org.teiid.language.visitor.AbstractLanguageVisitor.visitNode(AbstractLanguageVisitor.java:47) at org.teiid.language.visitor.SQLStringVisitor.append(SQLStringVisitor.java:90) at org.teiid.translator.jdbc.SQLConversionVisitor.append(SQLConversionVisitor.java:127) at org.teiid.translator.jdbc.TranslatedCommand.translateCommand(TranslatedCommand.java:69) at org.teiid.translator.jdbc.JDBCBaseExecution.translateCommand(JDBCBaseExecution.java:122) at org.teiid.translator.jdbc.JDBCQueryExecution.execute(JDBCQueryExecution.java:110) at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.execute(ConnectorWorkItem.java:402) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.teiid.dqp.internal.datamgr.ConnectorManager$1.invoke(ConnectorManager.java:228) at com.sun.proxy.$Proxy46.execute(Unknown Source) at org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:302) at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:108) at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:104) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.teiid.dqp.internal.process.FutureWork.run(FutureWork.java:59) at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:281) at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:124) at org.teiid.dqp.internal.process.ThreadReuseExecutor$2.run(ThreadReuseExecutor.java:212) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)