mirror of
https://github.com/apache/impala.git
synced 2025-12-31 15:00:10 -05:00
* AggFnEvaluator now uses the UDF mem pool (I'm planning to change this to per-exec node pools in the expr refactoring) * FunctionContext::TrackAllocation()/Free() actually use the UDF's mem tracker * Added FunctionContextImpl::Close() which sets warnings for leaked allocations Change-Id: I792ffd49102a92b57e34df18d8ff5f5d0fd27370 Reviewed-on: http://gerrit.ent.cloudera.com:8080/1792 Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com> Tested-by: Skye Wanderman-Milne <skye@cloudera.com> (cherry picked from commit 41a5f7cfa718789fa3b2de3a31f085411fb5000c) Reviewed-on: http://gerrit.ent.cloudera.com:8080/1954 Tested-by: jenkins
13 lines
353 B
Plaintext
13 lines
353 B
Plaintext
====
|
|
---- QUERY
|
|
create database if not exists native_function_test;
|
|
use native_function_test;
|
|
|
|
drop function if exists agg_memtest(bigint);
|
|
|
|
create aggregate function agg_memtest(bigint) returns bigint
|
|
location '/test-warehouse/libTestUdas.so' update_fn='MemTestUpdate';
|
|
|
|
select agg_memtest(bigint_col * 10 * 1024 * 1024) from functional.alltypes;
|
|
====
|