Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Impala 2.10.0
-
None
-
ghx-label-7
Description
Currently the UDF interface uses Allocate(), which only returns NULL if malloc() fails. We should switch it to use TryAllocate() instead so that the query stays within the memory limit.
We should consider this a breaking change because existing UDFs and UDAs may not tolerate Allocate() returning NULL very well, and this would make it more frequent.
I would like to get this in soon, but put it behind a flag so that it can optionally be enabled.
Attachments
Issue Links
- is related to
-
IMPALA-3304 Aggregations do not always spill when exprs use large amount of memory
- Open