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 4FAD19746 for ; Thu, 1 Mar 2012 01:48:11 +0000 (UTC) Received: (qmail 58864 invoked by uid 500); 1 Mar 2012 01:48:09 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 58784 invoked by uid 500); 1 Mar 2012 01:48:09 -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 58763 invoked by uid 99); 1 Mar 2012 01:48:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 01:48:09 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jcoveney@gmail.com designates 209.85.214.177 as permitted sender) Received: from [209.85.214.177] (HELO mail-tul01m020-f177.google.com) (209.85.214.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 01:48:03 +0000 Received: by obcuz6 with SMTP id uz6so163931obc.22 for ; Wed, 29 Feb 2012 17:47:42 -0800 (PST) Received-SPF: pass (google.com: domain of jcoveney@gmail.com designates 10.60.4.202 as permitted sender) client-ip=10.60.4.202; Authentication-Results: mr.google.com; spf=pass (google.com: domain of jcoveney@gmail.com designates 10.60.4.202 as permitted sender) smtp.mail=jcoveney@gmail.com; dkim=pass header.i=jcoveney@gmail.com Received: from mr.google.com ([10.60.4.202]) by 10.60.4.202 with SMTP id m10mr1360581oem.10.1330566462739 (num_hops = 1); Wed, 29 Feb 2012 17:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=XU0JALaeS4ACjaQhPu5+rZS1DV/rMqxgCAE1oXFLMa4=; b=qcOSulymYxSW3NGi3PEeJ214lCO1tIdmA7S2yFWhTOQ0wHFqbxFNHoO19HTNHuM8XW zV8cqQFgZGDhs9bJ1MakroyeB6LW2pWgDFBefzTdHQysb5TUp1ea5uG8ZOWnWTeQ0W/S 79oOrlJWFBvAnfzW5oJltZPIGTxFX6GOiQNHA= MIME-Version: 1.0 Received: by 10.60.4.202 with SMTP id m10mr1160521oem.10.1330566462702; Wed, 29 Feb 2012 17:47:42 -0800 (PST) Received: by 10.182.88.38 with HTTP; Wed, 29 Feb 2012 17:47:42 -0800 (PST) Date: Wed, 29 Feb 2012 17:47:42 -0800 Message-ID: Subject: Better map support? From: Jonathan Coveney To: dev@pig.apache.org, user@pig.apache.org Content-Type: multipart/alternative; boundary=e89a8ff1c7d65c038f04ba24a53f X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1c7d65c038f04ba24a53f Content-Type: text/plain; charset=UTF-8 Hey all! In the last couple of weeks I've found myself wanting for better map support in pig. I'd be willing to do the work, just wanted to get a sense of what people thought might be useful. And maybe some of this exists! TOBAG - given a Map, outputs {(key,value)} KEYSET - returns {(key)} where it is unique VALUESET - returns {(value)} where it is unique CONCAT - takes some number of Maps, and merges them together. The first one's values will override the rest. Or the latest one will. Whatevs. Not sure what else would be useful. I'm including user@ on this because I'd love to hear any map manipulation features you crave. Maps, up to know, have been pretty 2nd class and I'd love to help change that. Jon --e89a8ff1c7d65c038f04ba24a53f--