Hello, I can easily take a flag from map and condi...
# suitescript
t
Hello, I can easily take a flag from map and conditionally enable/disable the code in reduce. , but is it possible to totally skip reduce stage for any particular value, like instead going to reduce it goes back to map with next value.
b
This sounds strange, a map reduce processes all data in map before moving to reduce
And only data written in map moves onto reduce
d
I think you could conditionally skip the context.write during the map phase for this or include your flag in the values you write and return early on the reduce phase if it’s present.
s
Yeah, not writing down to the reduce is the correct method
t
Yes not writing down works, Thank you guys..