You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by centerqi hu <ce...@gmail.com> on 2013/04/24 04:46:56 UTC
first field utf8 formate
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; };
--
centerqi@gmail.com
Re: first field utf8 formate
Posted by centerqi hu <ce...@gmail.com>.
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 <ce...@gmail.com>
> 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; };
> --
> centerqi@gmail.com
>
--
centerqi@gmail.com|齐忠