Closed jgraham closed 8 years ago
Hi. I suspect that this is a bug that is uncovered and not a regression. I just filed another uncovered leftOuterJoin bug at https://github.com/google/lovefield/issues/124, which might be the same root cause as your report here, although in my case it does not hang, it just throws an assertion error. Providing running code will help a lot, but I would wait until #120 is fixed, and check again if this issue is reproducible first.
@jgraham: Can you check if you can still reproduce after https://github.com/google/lovefield/commit/3ffbd6a553194d9b2f8df5205aed04c6c91d98b2? I believe that it might have fixed it. My theory of what was happening is that because the optimizer was failing to push down some SelectNodes towards the bottom of the query execution plan, a bunch of cross-products ended up in your final optimized plan. Because you are joining 5 tables, the cross-products took too long to calculate (and consumed too much memory) causing the browsers to hang/crash. Hoping that this is not happening anymore, but if it is, let us know.
It seems to work with that fix. Thanks!
So, I suspect the fix in #120 is responsible for a regression (or possibly for exposing a latent bug).
I have a tool that does a query like:
With this version of lovefield this query causes Firefox to hang and Chrome's content process to crash. Changing the joins to inner joins prevents the hang.
I can provide running code if that helps.