Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-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 93FBA60EF for ; Wed, 27 Jul 2011 23:25:32 +0000 (UTC) Received: (qmail 93592 invoked by uid 500); 27 Jul 2011 23:25:32 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 93420 invoked by uid 500); 27 Jul 2011 23:25:31 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 93393 invoked by uid 500); 27 Jul 2011 23:25:31 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 93389 invoked by uid 99); 27 Jul 2011 23:25:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2011 23:25:31 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2011 23:25:29 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7CE8C8E330 for ; Wed, 27 Jul 2011 23:25:09 +0000 (UTC) Date: Wed, 27 Jul 2011 23:25:09 +0000 (UTC) From: "Siying Dong (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1050639308.14088.1311809109508.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <464080870.9548.1311718389993.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HIVE-2309) Incorrect regular expression for extracting task id from filename 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/HIVE-2309?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Siying Dong updated HIVE-2309: ------------------------------ Resolution: Fixed Status: Resolved (was: Patch Available) commited. Thanks Paul! > Incorrect regular expression for extracting task id from filename > ----------------------------------------------------------------- > > Key: HIVE-2309 > URL: https://issues.apache.org/jira/browse/HIVE-2309 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.7.1 > Reporter: Paul Yang > Assignee: Paul Yang > Priority: Minor > Attachments: HIVE-2309.1.patch, HIVE-2309.2.patch > > > For producing the correct filenames for bucketed tables, there is a metho= d in Utilities.java that extracts out the task id from the filename and rep= laces it with the bucket number. There is a bug in the regex that is used t= o extract this value for attempt numbers >=3D 10: > {code} > >>> re.match("^.*?([0-9]+)(_[0=E2=80=8B-9])?(\\..*)?$", 'attempt_20110709= 0429_6496=E2=80=8B5_m_001210_10').group(1) > '10' > >>> re.match("^.*?([0-9]+)(_[0=E2=80=8B-9])?(\\..*)?$", 'attempt_20110709= 0429_6496=E2=80=8B5_m_001210_9').group(1) > '001210' > {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira