<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 8, 2013 at 11:16 AM, Matt Campbell <span dir="ltr">&lt;<a href="mailto:mcampbell@pentaho.com" target="_blank">mcampbell@pentaho.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thread (b) blocks waiting on the connection
    held by (a)</blockquote></div><br>To me that&#39;s the core of the problem. The actor thread should not run SQL statements; ever. But as we have realized while browsing the code, moving the optimization phase isn&#39;t trivial.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Still thinking about this...</div><div class="gmail_extra"><br></div></div>