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 Plain View
Hive >> mail # user >> hive regular expression


+
qiaoresearcher 2012-12-26, 18:46
+
Dean Wampler 2012-12-26, 18:50
Copy link to this message
-
Re: hive regular expression
Parse_url and str_to_map may offer an alternative worth looking into.

On Dec 26, 2012, at 1:50 PM, Dean Wampler <[EMAIL PROTECTED]> wrote:

> Hive uses Java's regex API. This tutorial provides an excellent introduction.
>
> http://docs.oracle.com/javase/tutorial/essential/regex/
>
> dean
>
> On Wed, Dec 26, 2012 at 12:46 PM, qiaoresearcher <[EMAIL PROTECTED]> wrote:
>> Assume there are strings like
>>
>> 'afewexcvgregre&MovieTitle=321grgrdg&olfll3onsl'
>>
>> or
>>  
>> '?MovieTitle=949303sjkskld&sososodn'
>>
>>
>> how to extract 'MovieTitle=321grgrdg' or 'MovieTitle=949303sjkskld' using Hive reg expression functions
>>
>>
>> thanks
>> and happy holidays
>
>
>
> --
> Dean Wampler, Ph.D.
> thinkbiganalytics.com
> +1-312-339-1330
>
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