Return-Path: X-Original-To: apmail-pig-user-archive@www.apache.org Delivered-To: apmail-pig-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 13EB39B09 for ; Thu, 2 Feb 2012 09:06:33 +0000 (UTC) Received: (qmail 90676 invoked by uid 500); 2 Feb 2012 09:06:32 -0000 Delivered-To: apmail-pig-user-archive@pig.apache.org Received: (qmail 90100 invoked by uid 500); 2 Feb 2012 09:06:13 -0000 Mailing-List: contact user-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pig.apache.org Delivered-To: mailing list user@pig.apache.org Received: (qmail 90085 invoked by uid 99); 2 Feb 2012 09:06:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 09:06:07 +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 (nike.apache.org: domain of praveenesh@gmail.com designates 74.125.82.53 as permitted sender) Received: from [74.125.82.53] (HELO mail-ww0-f53.google.com) (74.125.82.53) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 09:05:59 +0000 Received: by wgbdr12 with SMTP id dr12so1941263wgb.22 for ; Thu, 02 Feb 2012 01:05:39 -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=XeX14/0Yte/fMP+PtKZ8xbyP6AGCpt89XK4WA209GRE=; b=bMRe6fNH393pB4q8a2pXVo0lBjcWNX4NYE4EvEBQaYNNA8j5LmnlrFEu7AJ/lzA9wN eYlWnVMNjwnlgYnZcn6oqoa7lmzyzuhZRdU0NSIoJDkcbtD5oscxZUGa1JCk0SAWhRKE UHp1VDLhwrYugdqAh2QN3EUWK5l87fjBR392k= MIME-Version: 1.0 Received: by 10.180.97.199 with SMTP id ec7mr3079719wib.8.1328173539794; Thu, 02 Feb 2012 01:05:39 -0800 (PST) Received: by 10.223.145.24 with HTTP; Thu, 2 Feb 2012 01:05:39 -0800 (PST) Date: Thu, 2 Feb 2012 14:35:39 +0530 Message-ID: Subject: How to use tuples ? From: praveenesh kumar To: user@pig.apache.org Content-Type: multipart/alternative; boundary=f46d044306a80a1f3404b7f78059 X-Virus-Checked: Checked by ClamAV on apache.org --f46d044306a80a1f3404b7f78059 Content-Type: text/plain; charset=ISO-8859-1 Hi, I am trying to learn how can I store records in tuples ? Suppose I have a txt file $ cat tmp.txt 1,2,3,4 2,3,4,5 4,5,5,6 I am doing this $ pig > A = Load 'tmp.txt' using PigStorage(',') AS (t:tuple(int:a,int:b,int:c,int:d)); $ pig > Dump A; I am getting nothing in the output ( ) ( ) ( ) Can anyone help me understanding why its happening ? Even if I don't use PigStorage nothing is coming. Thanks, Praveenesh --f46d044306a80a1f3404b7f78059--