Description
Assert operator can be used for data validation. With assert you can write script as following-
a = load 'something' as (a0:int, a1:int); assert a by a0 > 0, 'a cant be negative for reasons';
This script will fail if assert is violated.
Attachments
Attachments
Issue Links
- is related to
-
PIG-3483 Document ASSERT keyword
- Closed