4 Replies Latest reply on Oct 11, 2012 1:24 PM by Steven Hawkins

    Continuous Executions with empty result sets

    Mark Addleman Master

      Attached is a test case (three cheers for embedded Teiid!) that illustrates a continuous execution which returns an empty result set.  The problem is that the execution will live forever because the callback is never invoked. 


      FWIW, I believe that the responsibility to cancel a CE lies with the client rather than translators since since, individually, the translators have no way of knowing if the overall query has been satisfied.  I think StatementCallback needs to be enhanced with some new method which is called when the planner re-executes the plan.  Personally, I think the signature should look something like:


      public void onStart(ResultSetMetadata metadata)