3 Replies Latest reply on Aug 18, 2014 8:17 AM by Steven Hawkins

    Unable to evaluate <fieldName>: No value was available

    Alex K. Newbie

      When issuing following statement on Teiid 8.9.0 Alpha1

       

      selecta from(
      SELECT sc.a FROM test_tables.test_a sc,
      table(exec SYSADMIN.logMsg(
          "level" => 'INFO',
          "context" => 'org.teiid.test',
          "msg" => 'Test Message: ' || sc.b
      )) f
      ) as x group by a
      
      

       

      following exception is thrown:

       

      ERROR [org.teiid.PROCESSOR] (Worker0_QueryProcessorQueue9) aMFpKzpsXmof TEIID30019 Unexpected exception forrequest aMFpKzpsXmof.4: org.teiid.core.TeiidComponentException: TEIID30328 Unable toevaluate sc.b: Novalue was available
              at org.teiid.query.util.CommandContext.getFromContext(CommandContext.java:490) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.eval.Evaluator.internalEvaluate(Evaluator.java:639) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.eval.Evaluator.evaluate(Evaluator.java:614) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.relational.NestedTableJoinStrategy.process(NestedTableJoinStrategy.java:111) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.relational.JoinNode.nextBatchDirect(JoinNode.java:211) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:278) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.BatchCollector$BatchProducerTupleSource.nextTuple(BatchCollector.java:94) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.relational.SortUtility.initialSort(SortUtility.java:272) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.relational.SortUtility.sort(SortUtility.java:202) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.relational.GroupingNode.sortPhase(GroupingNode.java:394) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.relational.GroupingNode.nextBatchDirect(GroupingNode.java:331) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:278) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.relational.LimitNode.nextBatchDirect(LimitNode.java:102) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:278) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.relational.ProjectNode.nextBatchDirect(ProjectNode.java:146) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:278) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.relational.RelationalPlan.nextBatch(RelationalPlan.java:136) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.QueryProcessor.nextBatchDirect(QueryProcessor.java:151) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.QueryProcessor.nextBatch(QueryProcessor.java:114) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:164) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:146) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.dqp.internal.process.RequestWorkItem.processMore(RequestWorkItem.java:444) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:326) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:51) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.dqp.internal.process.RequestWorkItem.run(RequestWorkItem.java:254) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:274) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:214) [teiid-engine-8.9.0.Alpha1.jar:8.9.0.Alpha1]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
              atjava.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]