How to delete a bin from a set


#1

Hello i am very new to aeropsike

how to delete a bin from a set, i have a set called demo and bins are (id,name,contact_number,fav_color) from that i need to delete ‘fav_color’ bin from set how to delete that ??

Thanks!


#2

Set the bin value to null for each record in the set. Don’t confuse a set in Aerospike with a table with fixed number of columns where you can just delete a column.


#3

How to set the bin value to null for each record in the set ??


#4

If you want a specific bin to be removed from all the records in a given set I’d advise you to write a record UDF for it, and execute it against all the records of the set through a scan.

aql> execute myudfs.null_a_bin('crud') on test.foo

#5

Thank you @rbotzer