Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8735

Getting error while compiling example project "Stores"

$
0
0

Hi,

 

I am getting following errors while compiling example project "Stores" provided with ESP installation (<InstalledDir>\ESP-5_1\examples\ccl\Stores).

 

 

DescriptionResourcePathLocationType
159211-4_WINDOW_NO_RETENTION_POLICYStores.ccl/Storesline 33 column 0CCL Compiler
159211-4_WINDOW_NO_RETENTION_POLICYStores.ccl/Storesline 28 column 0CCL Compiler
159211-4_WINDOW_NO_RETENTION_POLICYStores.ccl/Storesline 47 column 0CCL Compiler

 

I am using ESP 5.1 SP03

Following is CCL file:

 

//

//This example shows a default store, memory store and log store

//

// the data for this example must be copied into your "base-directory/exampledata"

 

 

//

//Sample Memory Store

CREATE MEMORY STORE MemStore

   PROPERTIES INDEXSIZEHINT = 8 , INDEXTYPE = 'TREE' ;

//

// Sample Default store  

CREATE DEFAULT MEMORY STORE DefaultStore

   PROPERTIES INDEXSIZEHINT = 8 , INDEXTYPE = 'TREE' ;

//Sample Log Store

CREATE LOG STORE LogStore

   PROPERTIES FILENAME = 'mylog.log' , MAXFILESIZE = 8 ,

      SYNC = FALSE , SWEEPAMOUNT = 20 ,

      RESERVEPCT = 20 , CKCOUNT= 10000 ;

 

 

 

 

// ----------------------------

// Input Window

CREATE  INPUT  WINDOW TradesWindowMem

  SCHEMA (Ts bigdatetime , Symbol STRING,

  Price MONEY(2), Volume INTEGER)

  PRIMARY KEY (Ts)

  STORE MemStore; //


// Out put window that uses the default memory store

CREATE OUTPUT WINDOW DefaultStoreWindow

  PRIMARY KEY ( Ts)

AS

  SELECT * FROM TradesWindowMem ;


//

//Window  that ues a log store

// because multiple rows are  processed in a millisecond

// this stream has few rows.

//If the log store is not removed, old rows will be loaded in at startup

CREATE Output WINDOW LogStoreWindow

  SCHEMA (Ts bigdatetime , Symbol STRING,

  Price MONEY(2), Volume INTEGER)

  PRIMARY KEY ( Ts,Symbol)

  STORE LogStore

AS

  SELECT now()  Ts,  tw.Symbol,

  tw.Price, tw.Volume

  FROM TradesWindowMem tw; // ----------------------------


// Input CSV Adaptor

ATTACH INPUT ADAPTER InConn

TYPE dsv_in

TO TradesWindowMem

PROPERTIES

  blockSize=1,

  dateFormat='%Y/%m/%d %H:%M:%S',

  delimiter=',',

  dir='../exampledata',

  expectStreamNameOpcode=false,

  fieldCount=0,

  file='stock-trades.csv',

  filePattern='*.csv',

  hasHeader=false,

  safeOps=false,

  skipDels=false,

  timestampFormat='%Y/%m/%d %H:%M:%S';

 

Thanks

Shashi


Viewing all articles
Browse latest Browse all 8735

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>