In a Map/Reduce script what is the most recommended approach to continue or skip an iteration within the map (or reduce for that matter) stage such that it continues or skips a given search result or array index, without returning completely out of the script execution? In other words it continues to invoke the map (or reduce stage) for the rest of the dataset
b
battk
05/25/2021, 11:52 PM
Return early
s
Sandii
05/25/2021, 11:52 PM
Did you try to just
return
in that iteration? Each invocation is its own entry point
n
NetSweetie
05/25/2021, 11:53 PM
for some reason I thought a simple return would just quit out of the script execution as a whole. Did not think it would be that simple lol