-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: panic: unsupported comparison #39438
Comments
All of these recent panics are to do with apply join. Hopefully they all have the same root case, but I don't know. See #38867 for another issue with apply join. |
#38867 has been fixed, but this issue is still present. I agree with Jordan that it appears the problem is with apply join (more specifically, with nested apply joins). If we remove one "query layer" (the outer main query), it successfully executes:
Apply join is still present, but it is single (unlike in the query that panics when we have a couple of nested apply joins):
I'm not sure where to go from here. Maybe @rytaft has pointers since you've recently fixed another issue with apply joins? |
I "instrumented" the apply join here (read: added a println of all re-planned right sides) and found the following plan that gets produced and attempted to execute right before the crash:
This plan seems like it might be the problem (or I'm misreading it). I'll paste just the suspicious part:
This seems to be an equality projection between constant @rytaft could you please glance at this last plan - does this look off? |
It does look a bit weird, but it's the same as the explain output for the following simple query:
And I checked that running it gives no error:
I'll dig into this a bit more to see if I can find anything... |
Just to close the loop here (already discussed offline): it seems that the problem is related to the fact that since the right side plan for If you look at |
This query now hits the same issue with apply join as #39433, so closing as duplicate. |
The text was updated successfully, but these errors were encountered: