Weather

Difference in two BAG elements comparision/Two fields comparison when not in a BAG:DIFF()

Explanation:

DIFF takes two bags as arguments and compares them. Any tuples that are in one bag but not the other are returned. 

- If the fields are not bags then they will be returned if they do not match,

 -or an empty bag will be returned if the two records match.

The implementation assumes that both bags being passed to this function will fit entirely into memory simultaneously. If that is not the case the UDF will still function, but it will be very slow.

No comments:

Post a Comment