How to get record from udf(lua) by digest


Is there a way to get record from udf by digest. Or maybe pass few records as argument from as client?


UDFs cannot return (a) record (s). To invoke a udf, for eg in java client, you need to pass the Key object to the client.execute(), identify the lua package name and udf function name. Using a udf you can modify or create a record but you cannot return a record.


A UDF can return any one of the supported data types (string, integer, double, bytes, list, map). A record is not one of those. What you can do is cast the bin name/value pairs of the record to a local map variable, and return it instead.