Type: New Feature
Affects Version/s: 0.11
Fix Version/s: 0.12.0
This is another language improvement using the same approach as in
Currently, Pig has no support for IN operator. To mimic it, users often have to concatenate several OR operators.
But this can be re-rewritten in a more compact manner using IN operator as follows:
I propose that we implement IN operator in the following manner:
- Add built-in UDFs that take expressions as args. Take for example the aforementioned IN operator, we can define a UDF such as builtInUdf(i, 1, 22, 333, 4444, 55555).
- Add syntactical sugar for these built-in UDFs.