Topic
  • 1 reply
  • Latest Post - ‏2013-05-20T09:14:08Z by markangelortuyo
markangelortuyo
markangelortuyo
2 Posts

Pinned topic Window clause order should be ( 'tumbling' ',' evictionSpec ) | ('sliding' ',' evictionSpec [',' triggerSpec] )

‏2013-05-20T08:26:00Z |

Hi guys,

I'm trying the example given in the redbooks of Infosphere streams, chapter 2.4,

I copy and paste the code, build it and Launch it, but this error appears. please advice. seem's I'm stack here. thank you so much for your help

Description    Resource    Path    Location    Type
CDISP0747W Window clause order should be ( 'tumbling' ',' evictionSpec ) | ('sliding' ',' evictionSpec [',' triggerSpec] )
 [',' 'partitioned' [',' partitionEvictionSpec] ].    Main.spl    /ProjectBLUE/ProjectBlue    Line 112, column 3    SPL Build

 

heres the code:

stream<rstring lastName, rstring firstName, rstring whocalled,
        rstring location, rstring timeStamp> JoinedRecords =
        Join(LostChildren as LHS ; MergedChildSightings as RHS){
        window
        LHS : sliding, count(0);
        RHS : partitioned, sliding, count(1);
        param
        algorithm : leftOuter ;
        partitionByRHS : RHS.lastName, RHS.firstName;
        equalityLHS : LHS.lastName + LHS.firstName ;
        equalityRHS : RHS.lastName + RHS.firstName ;
        output
        JoinedRecords : lastName = LHS.lastName, firstName =
        LHS.firstName, whocalled = LHS.whocalled, location =
        RHS.location, timeStamp = RHS.timeStamp ;
        }

 

 

  • markangelortuyo
    markangelortuyo
    2 Posts

    Re: Window clause order should be ( 'tumbling' ',' evictionSpec ) | ('sliding' ',' evictionSpec [',' triggerSpec] )

    ‏2013-05-20T09:14:08Z  

    found the answer.

    before code:

     

     LHS : sliding, count(0);
            RHS : partitioned, sliding, count(1);

     

    Corret code:

            LHS : sliding, count (0) ;
            RHS :  sliding, count (1),partitioned ;

     

    partitioned param should be at the last,..

     

    this code came from,

    IBM InfoSphere Streams
    Assembling Continuous Insight in the Information Revolution

     

    -Mark,