You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
An allocation failure while building a group node crashes the parted group or answers nyi, not oom #1817
nyi instead of oom. In-memory tables answer nyi (not implemented) at one failure position in the planner, for every group shape tried: by: k, by: [k j], median, pearson_corr, keyless sum/avg, wavg, sum (* v w).
The planner gets a NULL root back from ray_group_build and runs it.
ray_execute answers nyi for any NULL root.
The node allocators record the failure in g->compile_err, but ray_execute never reads it.
The builders' own scratch carves (ray_group_build's id buffer and the sort, join, pivot and window builders) return NULL without recording anything.
Reproduction (DEBUG seams)
ray_group_alloc_fail_for_test(n), swept over every n on the parted query above: SIGSEGV at the first scan failure.
The per-thread heap seam ray_alloc_fail_set_for_test(n, 1) over the whole evaluation: on (select {from: F by: k}), allocation 27 (ray_group_build's id buffer) answers nyi.
Expected
The unfailed answer, or oom, nothing kept and no crash.
Activity
fix(graph): an allocation failure while building a group node answers…
fix(graph): an allocation failure while building a query plan answers…