Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C3A9810CFF for ; Wed, 26 Mar 2014 00:24:20 +0000 (UTC) Received: (qmail 80360 invoked by uid 500); 26 Mar 2014 00:24:17 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 80301 invoked by uid 500); 26 Mar 2014 00:24:17 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 80289 invoked by uid 500); 26 Mar 2014 00:24:16 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 80280 invoked by uid 99); 26 Mar 2014 00:24:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2014 00:24:15 +0000 Date: Wed, 26 Mar 2014 00:24:14 +0000 (UTC) From: "Keren Ouaknine (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PIG-3749) PigPerformance - data in the map gets lost during parsing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PIG-3749?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Keren Ouaknine updated PIG-3749: -------------------------------- Attachment: patch.txt > PigPerformance - data in the map gets lost during parsing > --------------------------------------------------------- > > Key: PIG-3749 > URL: https://issues.apache.org/jira/browse/PIG-3749 > Project: Pig > Issue Type: Bug > Affects Versions: 0.12.0 > Reporter: Keren Ouaknine > Fix For: 0.12.1 > > Attachments: patch.txt > > > Create a Pigmix sample dataset which looks as follow: > keren=091=092=09qt=093=094=095.0=09a=04aaa=03b=04bbb=09mc=04ccc=03d=04ddd= =03e=04eee=03d=02mf=04fff=03g=04ggg=03h=04hhh > Launch the following query: > A =3D load 'page_views_sample.txt' using org.apache.pig.test.pigmix.udf.P= igPerformanceLoader() > as (user, action, timespent, query_term, ip_addr, timestamp, estimate= d_revenue, page_info, page_links); > store A into 'L1out_A'; > B =3D foreach A generate user, (int)action as action, (map[])page_info as= page_info, flatten((bag{tuple(map[])})page_links) as page_links; > store B into 'L1out_B'; > The result looks like this:=20 > keren=091=09[b#bbb,a#aaa]=09[d#,e#eee,c#ccc] > keren=091=09[b#bbb,a#aaa]=09[f#fff,g#ggg,h#hhh > It is missing the 'ddd' value and a closing bracket. > Thanks, > Keren -- This message was sent by Atlassian JIRA (v6.2#6252)