aerospike-client-python
aerospike-client-python copied to clipboard
execute udf aerospike:remove failed
UDF write.lua as follow
function deleteRecord(rec)
aerospike:remove(rec)
end
execute in python
Query.where(p.equals('tn', tn)).apply('write', 'deleteRecord', []).results()
get Error
exception.UDFError: (100, "UDF: Execution Error 2 : ./write.lua:3: bad argument #1 to 'remove' (Record expected, got table)", 'src/main/aerospike/aerospike_query.c', 995, False)
The java client can execute this udf successfully.
Hi @zzl221000, what version of the Python client and Aerospike server are you using? What operating system are you on?
what version of the Python client and Aerospike server are you using? What operating system are you on?
os: wls2 Ubuntu 20.04 python client version: aerospike 6.1.2 server version: aerospike/aerospike-server:latest @dwelch-spike
Hi @zzl221000, are you still having trouble with this?