sql: implicit cross joins can cause OOM errors #7572
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
S-3-ux-surprise
Issue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.
select4.test
from sqllogictest causes my server to be killed by the kernel's OOM killer. It tries a cross join with 6 arguments (FROM a,b,c,d,e,f), and the join first tries to generate millions of cross-product rows in memory.There are three issues that participate into this problem, which will need separate solutions:
planNode
should be extended with aClose()
orPurge()
interface to release allocated data structures in memory after they are not needed any more.The text was updated successfully, but these errors were encountered: