This repository was archived by the owner on May 3, 2024. It is now read-only.

Description
We are getting error UDF: Execution Error 1 when UDF function is executed using method Aerospike->aggregate(). Lua functions on itself are correct and works perfectly when triggered using tool aql.
Here is how we enable log output:
$client->setLogHandler(function(){print_r(func_get_args());});
$client->setLogLevel(Aerospike::LOG_LEVEL_TRACE);
$client->aggregate(...);
var_dump($client->error(), $client->errorno());
And output:
Array
(
[0] => 4
[1] => apply_stream
[2] => src/main/mod_lua.c
[3] => 1232
)
Array
(
[0] => 4
[1] => apply_stream
[2] => src/main/mod_lua.c
[3] => 1235
)
Array
(
[0] => 4
[1] => poll_state
[2] => src/main/mod_lua.c
[3] => 620
)
Array
(
[0] => 0
[1] => create_state
[2] => src/main/mod_lua.c
[3] => 577
Array
(
[0] => 4
[1] => poll_state
[2] => src/main/mod_lua.c
[3] => 629
)
Array
(
[0] => 4
[1] => apply_stream
[2] => src/main/mod_lua.c
[3] => 1239
)
string(22) "UDF: Execution Error 1"
int(100)