I registered two lua module using aql:
aggiorna_gender.lua (record UDF)
aggregationByRegion.lua (stream UDF)
I try to call them inside a Java Client.
No problem for aggiorna_gender.lua.
Instead, when I try to call aggregationByRegion.lua, I get this exception:
“Failed to read file: /MORENO_91/Aggregations/udf/aggregationByRegion.lua”
Lua module is looked for in a hypotetical udf subdirectory (I run Client in /MORENO_91/Aggregations directory)
directory where it is (like aggiorna_gender.lua):
The strangest behaviour is that raggregationByRegion.lua file is randomly (???) looked for in correct directory (about one out of 10).
Java code when I call aggiorna_gender.lua:
String result = client.execute(null, userKey, “aggiorna_gender”, “aggiornaGender”, Value.get(gender)).toString();
Java code when I call aggregationByRegion.lua:
rs = client.queryAggregate(null, stmt, “aggregationByRegion”, “sum”);
Any help is very appreciated.
Many thanks in advance.