aerospike-client-python icon indicating copy to clipboard operation
aerospike-client-python copied to clipboard

execute udf aerospike:remove failed

Open zzl221000 opened this issue 3 years ago • 2 comments

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.

zzl221000 avatar Feb 08 '22 09:02 zzl221000

Hi @zzl221000, what version of the Python client and Aerospike server are you using? What operating system are you on?

dwelch-spike avatar Feb 08 '22 17:02 dwelch-spike

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

zzl221000 avatar Feb 09 '22 00:02 zzl221000

Hi @zzl221000, are you still having trouble with this?

juliannguyen4 avatar Jan 18 '23 00:01 juliannguyen4