You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by Apache Wiki <wi...@apache.org> on 2008/09/16 23:22:16 UTC
[Pig Wiki] Trivial Update of "PigFaq" by DavidPhillips
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Pig Wiki" for change notification.
The following page has been changed by DavidPhillips:
http://wiki.apache.org/pig/PigFaq
The comment on the change is:
turn #7 into a question
------------------------------------------------------------------------------
Pig does support regular expression matching via `matches` keyword. It uses java.util.regexp matches which means your pattern has to match the entire string (ie if your string is "hi fred" and you want to find "fred" you have to give a pattern of ".*fred" not "fred").
- '''7. How to prevent failure if some records don't have the needed number of columns.'''
+ '''7. How do I prevent failure if some records don't have the needed number of columns?'''
You can filter away those records by including the following in your Pig program: