10 Replies Latest reply on Dec 6, 2013 10:04 AM by Steven Hawkins

    Out join exception

    kchen007 Apprentice

      When we do this sql

            SELECT

                          NVL(o.optionvalue,dp.Value_) AS PARM_VAL_TXT,

                     FROM

                          Drillstring_Prm dp LEFT OUTER JOIN

                          OPTIONLIST o ON dp.parameter_=o.nameinsource and dp.value_=o.number

                     WHERE dp.Value_ IS NOT NULL;

       

      we got the followng exception, what does the assertion mean?

       

      16:22:29,963 ERROR [org.teiid.PROCESSOR] (Worker16_QueryProcessorQueue68) TEIID30019 Unexpected exception for request PvsT90Mvv9wD.7: java.lang.AssertionError: ASSERTION FAILED: expected reference to be not null
                     at org.teiid.core.util.Assertion.failed(Assertion.java:73) [teiid-common-core-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.core.util.Assertion.isNotNull(Assertion.java:100) [teiid-common-core-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.core.util.Assertion.isNotNull(Assertion.java:92) [teiid-common-core-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.common.buffer.TupleBuffer.getBatch(TupleBuffer.java:302) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.BatchIterator.finalRow(BatchIterator.java:64) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.common.buffer.AbstractTupleSource.getCurrentTuple(AbstractTupleSource.java:70) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.BatchIterator.getCurrentTuple(BatchIterator.java:85) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.common.buffer.AbstractTupleSource.nextTuple(AbstractTupleSource.java:48) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.relational.SortUtility.initialSort(SortUtility.java:257) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.relational.SortUtility.sort(SortUtility.java:190) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.relational.SourceState.sort(SourceState.java:312) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.relational.MergeJoinStrategy.loadRight(MergeJoinStrategy.java:348) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.relational.EnhancedSortMergeJoinStrategy.loadRight(EnhancedSortMergeJoinStrategy.java:257) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.relational.JoinNode.nextBatchDirect(JoinNode.java:208) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:278) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.relational.LimitNode.nextBatchDirect(LimitNode.java:101) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:278) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.relational.ProjectNode.nextBatchDirect(ProjectNode.java:146) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:278) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.relational.RelationalPlan.nextBatch(RelationalPlan.java:149) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.QueryProcessor.nextBatchDirect(QueryProcessor.java:149) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.QueryProcessor.nextBatch(QueryProcessor.java:112) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:153) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.dqp.internal.process.RequestWorkItem.processMore(RequestWorkItem.java:435) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:320) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:51) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.dqp.internal.process.RequestWorkItem.run(RequestWorkItem.java:248) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:269) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:214) [teiid-engine-8.4.0.Final.jar:8.4.0.Final]
                     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_27]
                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_27]
                     at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_27]

       

       

      thanks,

      Kevin