Return-Path: Delivered-To: apmail-incubator-pig-dev-archive@locus.apache.org Received: (qmail 64679 invoked from network); 11 Oct 2008 05:33:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2008 05:33:35 -0000 Received: (qmail 2829 invoked by uid 500); 11 Oct 2008 05:33:34 -0000 Delivered-To: apmail-incubator-pig-dev-archive@incubator.apache.org Received: (qmail 2796 invoked by uid 500); 11 Oct 2008 05:33:34 -0000 Mailing-List: contact pig-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pig-dev@incubator.apache.org Delivered-To: mailing list pig-dev@incubator.apache.org Received: (qmail 2785 invoked by uid 99); 11 Oct 2008 05:33:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2008 22:33:34 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Oct 2008 05:32:37 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5235C234C218 for ; Fri, 10 Oct 2008 22:32:44 -0700 (PDT) Message-ID: <635158313.1223703164329.JavaMail.jira@brutus> Date: Fri, 10 Oct 2008 22:32:44 -0700 (PDT) From: "Earl Cahill (JIRA)" To: pig-dev@incubator.apache.org Subject: [jira] Updated: (PIG-476) given a date that can match a SimpleDateFormat want to be able to extract arbitrary SimpleDateFormat data, like day or year In-Reply-To: <1592153427.1223452424346.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PIG-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Earl Cahill updated PIG-476: ---------------------------- Attachment: (was: DateExtractor-PIG-476) > given a date that can match a SimpleDateFormat want to be able to extract arbitrary SimpleDateFormat data, like day or year > --------------------------------------------------------------------------------------------------------------------------- > > Key: PIG-476 > URL: https://issues.apache.org/jira/browse/PIG-476 > Project: Pig > Issue Type: New Feature > Reporter: Earl Cahill > > Want to be able to do something like > A = FOREACH raw GENERATE org.apache.pig.piggybank.evaluation.util.apachelogparser.DateExtractor(dayTime, "yyyy", "dd/MMM/yyyy:HH:mm:ss"); > to extract the year, or if your date is formatted as > dd/MMM/yyyy:HH:mm:ss Z > you could do something like > A = FOREACH raw GENERATE org.apache.pig.piggybank.evaluation.util.apachelogparser.DateExtractor(dayTime, "MM-dd-yyyy"); > to grab out the day -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.