Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> regular expression as delimiter in PigStorage?


Copy link to this message
-
regular expression as delimiter in PigStorage?
Hi,

Is it possible to use a regular expression as a delimiter to load a data,
say sth. like
A = load 'data' using PigStorage('\s+');

However, by checking the doc, it seems that only one character is accepted
as the delimiter.
http://pig.apache.org/docs/r0.10.0/api/org/apache/pig/builtin/PigStorage.html

Just wondering whether there is any way to achieve similar goal  as the
command above.  BTW,  I'm using Pig 0.10.0.

Thanks,
- Lei
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB