[Swift-devel] iterate fails

Michael Wilde wilde at mcs.anl.gov
Mon Sep 16 11:29:01 CDT 2013


If this is indeed failing on trunk, hopefully the test suite will see the same thing.
Yadu, can you look into this and file a ticket if its indeed a trunk bug?

Thanks,

- Mike

----- Original Message -----
> From: "Ketan Maheshwari" <ketancmaheshwari at gmail.com>
> To: "Michael Wilde" <wilde at mcs.anl.gov>
> Cc: "Swift Devel" <swift-devel at ci.uchicago.edu>
> Sent: Monday, September 16, 2013 11:23:54 AM
> Subject: Re: [Swift-devel] iterate fails
> 
> 
> 
> Mike,
> 
> I am using the latest trunk:
> Swift trunk swift-r7065 (swift modified locally) cog-r3782
> 
> 
> 
> 
> On Mon, Sep 16, 2013 at 11:20 AM, Michael Wilde < wilde at mcs.anl.gov >
> wrote:
> 
> 
> Ketan, this worked for me (see below). What version of swift did you
> run where?
> 
> I ran on swift.rcc, on localhost.
> 
> - Mike
> 
> swift$ swift km2.swift -data=data.txt
> Swift 0.94.1 RC2 swift-r6895 cog-r3765
> 
> RunID: 20130916-1617-i570fay7
> Progress: time: Mon, 16 Sep 2013 16:17:32 +0000
> Final status: Mon, 16 Sep 2013 16:17:33 +0000 Finished successfully:3
> 
> swift$ ls -lt outdir | head
> total 16032
> -rw-r--r-- 1 wilde wilde 9 Sep 16 11:17 f.0002.out
> -rw-r--r-- 1 wilde wilde 9 Sep 16 11:17 f.0001.out
> -rw-rw-r-- 1 wilde wilde 9 Sep 16 11:17 f.0000.out
> -rw-rw-r-- 1 wilde wilde 9 Jul 27 17:05 f.0483.out
> -rw-rw-r-- 1 wilde wilde 9 Jul 27 17:05 f.0490.out
> -rw-rw-r-- 1 wilde wilde 9 Jul 27 17:05 f.0488.out
> -rw-rw-r-- 1 wilde wilde 9 Jul 27 17:05 f.0500.out
> -rw-rw-r-- 1 wilde wilde 9 Jul 27 17:05 f.0498.out
> -rw-rw-r-- 1 wilde wilde 9 Jul 27 17:05 f.0491.out
> swift$ swift -version
> Swift 0.94.1 RC2 swift-r6895 cog-r3765
> 
> swift$
> 
> 
> 
> 
> ----- Original Message -----
> > From: "Ketan Maheshwari" < ketancmaheshwari at gmail.com >
> > To: "Swift Devel" < swift-devel at ci.uchicago.edu >
> > Sent: Monday, September 16, 2013 10:49:07 AM
> > Subject: [Swift-devel] iterate fails
> > 
> > 
> > 
> > 
> > Hi,
> > 
> > I am trying a catsn example with foreach replaced by iterate as
> > follows:
> > 
> > ===
> > type file;
> > 
> > app (file o) cat (file i) {
> > cat @i stdout=@o;
> > }
> > file out[]<simple_mapper; location="outdir",
> > prefix="f.",suffix=".out">;
> > 
> > string d=@arg("data");
> > 
> > #foreach j in [1:1000] {
> > iterate j {
> > file data<single_file_mapper; file=d>;
> > out[j] = cat(data);
> > } until (j==3);
> > 
> > 
> > ===
> > 
> > 
> > The run fails with error message as follows:
> > $ swift -tc.file tc -config cf -sites.file sites.xml catsn.swift
> > -data=data.txt
> > Swift trunk swift-r7065 (swift modified locally) cog-r3782
> > RunID: 20130916-1045-tldyyexe
> > Progress: time: Mon, 16 Sep 2013 10:45:41 -0500
> > 
> > Execution failed:
> > org.griphyn.vdl.mapping.InvalidPathException: Array index '[2]' not
> > found for out of size 2
> > swift:getFieldSubscript @ catsn, line: 93
> > Caused by: org.griphyn.vdl.mapping.InvalidPathException: Array
> > index
> > '[2]' not found for out of size 2
> > 
> > 
> > 
> > Any suggestions?
> > 
> > 
> > Thanks,
> > 
> > --
> > Ketan
> > 
> > 
> > _______________________________________________
> > Swift-devel mailing list
> > Swift-devel at ci.uchicago.edu
> > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel
> > 
> 
> 
> 
> --
> Ketan
> 
> 



More information about the Swift-devel mailing list