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 BEFBBE956 for ; Wed, 6 Feb 2013 00:05:13 +0000 (UTC) Received: (qmail 5891 invoked by uid 500); 6 Feb 2013 00:05:13 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 5798 invoked by uid 500); 6 Feb 2013 00:05:13 -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 5784 invoked by uid 500); 6 Feb 2013 00:05:13 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 5777 invoked by uid 99); 6 Feb 2013 00:05:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2013 00:05:13 +0000 Date: Wed, 6 Feb 2013 00:05:13 +0000 (UTC) From: "Johnny Zhang (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (PIG-3162) PigTest.assertOutput doesn't allow non-default delimiter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PIG-3162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Johnny Zhang reassigned PIG-3162: --------------------------------- Assignee: Johnny Zhang > PigTest.assertOutput doesn't allow non-default delimiter > -------------------------------------------------------- > > Key: PIG-3162 > URL: https://issues.apache.org/jira/browse/PIG-3162 > Project: Pig > Issue Type: Bug > Components: tools > Affects Versions: 0.11 > Reporter: Cheolsoo Park > Assignee: Johnny Zhang > Priority: Minor > Labels: newbie > > {{PigTest.assertInput(String aliasInput, String[] input, String alias, String[] expected)}} assumes that the default delimiter is used (i.e. tab char) in input data. > {code:title=TestPig.java} > override(aliasInput, String.format( > "%s = LOAD '%s' AS %s;", aliasInput, destination, sb.toString())); > {code} > But it will be useful to be able to use a non-default delimiter. For example, here is an email from the user mailing list: > http://search-hadoop.com/m/Pxcfq1TrnIb/PigUnit+test+for+script+with+non-default+PigStorage+delimiter&subj=PigUnit+test+for+script+with+non+default+PigStorage+delimiter -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira