This looks like an environment issue. Dmitry, did you start with a clean tree? 
The error states that a table already exists so probably not related to the 
parser changes.

Who owns this function? We should aim for stateless tests.

Olga

-----Original Message-----
From: Dmitriy Ryaboy [mailto:dvrya...@gmail.com] 
Sent: Sunday, March 06, 2011 6:28 PM
To: dev@pig.apache.org
Subject: Re: Failing Test org.apache.pig.parser.TestLogicalPlanGenerator

TestDBStorage in contrib/ is failing too.
Different issue:

java.io.IOException: Cannot create table
        at
org.apache.pig.piggybank.test.storage.TestDBStorage.createTable(TestDBStorage.java:116)
        at
org.apache.pig.piggybank.test.storage.TestDBStorage.setUp(TestDBStorage.java:123)
Caused by: java.sql.SQLException: Table already exists: TTT in statement
[create table ttt]
        at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
        at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
        at org.hsqldb.jdbc.jdbcStatement.executeUpdate(Unknown Source)
        at
org.apache.pig.piggybank.test.storage.TestDBStorage.createTable(TestDBStorage.java:111)


D

On Sun, Mar 6, 2011 at 5:16 PM, Dmitriy Ryaboy <dvrya...@gmail.com> wrote:

> I just pulled trunk, did ant clean + ant test, and I see this test
> failing.
>
> It seems that there are some hardcoded paths in there:
>
> Failed to generate logical plan for query [define CMD `perl GroupBy.pl '
>      ' 0 1` ship('/homes/jianyong/pig_harness/libexec/PigTest/GroupBy.pl');A
> = load '/user/pig/tests/data/singlefile/studenttab10k';B = group A by $0;C =
> foreach B {   D = order A by $1;    generate flatten(D);};E = stream C
> through CMD;store E into
> '/user/pig/out/jianyong.1297238871/ComputeSpec_8.out';] due to exception:
> *Failed to generate logical plan. Nested exception: java.io.IOException:
> Invalid ship specification:
> '/homes/jianyong/pig_harness/libexec/PigTest/GroupBy.pl' does not exist!*
> junit.framework.AssertionFailedError: Failed to generate logical plan for
> query [define CMD `perl GroupBy.pl '  ' 0 1`
> ship('/homes/jianyong/pig_harness/libexec/PigTest/GroupBy.pl');A = load
> '/user/pig/tests/data/singlefile/studenttab10k';B = group A by $0;C =
> foreach B {   D = order A by $1;    generate flatten(D);};E = stream C
> through CMD;store E into
> '/user/pig/out/jianyong.1297238871/ComputeSpec_8.out';] due to exception:
> Failed to generate logical plan. Nested exception: java.io.IOException:
> Invalid ship specification:
> '/homes/jianyong/pig_harness/libexec/PigTest/GroupBy.pl' does not exist!
>         at
> org.apache.pig.parser.TestLogicalPlanGenerator.generateLogicalPlan(TestLogicalPlanGenerator.java:70)
>         at
> org.apache.pig.parser.TestLogicalPlanGenerator.test12(TestLogicalPlanGenerator.java:156)
>
>

Reply via email to