Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig, mail # user - first field utf8 formate


Copy link to this message
-
Re: first field utf8 formate
centerqi hu 2013-04-24, 03:03
Issue is resolved
as follow
SSCNT = FOREACH SSG {UV = DISTINCT SS.ukey; GENERATE '主动搜索uv、pv' as
scnt:chararray, FLATTEN(group) AS platform, COUNT(UV) as uv, COUNT(SS.ukey)
as pv; };
2013/4/24 centerqi hu <[EMAIL PROTECTED]>

> If  first field is utf8 formate,the output will get unrecognized code
>
> SSCNT = FOREACH SSG {UV = DISTINCT SS.ukey; GENERATE '主动搜索uv、pv' as scnt,
> FLATTEN(group) AS platform, COUNT(UV) as uv, COUNT(SS.ukey) as pv; };
> --
> [EMAIL PROTECTED]
>

--
[EMAIL PROTECTED]|齐忠