Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
/// Odysseus Testcase: Map
/// Operator: MAP
/// Date: Sat Aug 15 13:43:54 CST 2015
/// User: ckuka
/// Parameter: 
///  ALLOWNULL: 
///  THREADS: 
///  EVALUATEONPUNCTUATION: 
///  KVEXPRESSIONS: 
///  SUPPRESSERRORS: 
///  DEBUG: 
///  NAME: 
///  EXPRESSIONS: [['x+z','y']]
///  REMOVEATTRIBUTES: 
///  KEEPALLATTRIBUTES: 
///  DESTINATION: 
///  SUPPRESSPUNCTUATIONS: 
///  ID: 
#PARSER PQL
#DROPALLQUERIES
#DROPALLSINKS
#DROPALLSOURCES
#ADDQUERY
input0 = ACCESS({
    source='source0_TimeInterval',
    wrapper='GenericPull',
    transport='file',
    protocol='SimpleCSV',
    dataHandler='Tuple',
    metaattribute=[
                  'TimeInterval'
                  ],
    options=[
        ['filename', '${BUNDLE-ROOT}/testdaten/map2map/input0.csv'],
        ['csv.delimiter', ';'],
        ['csv.trim', 'true']
        ],
    schema=[['timestamp', 'STARTTIMESTAMP'], ['x', 'Double'], ['y', 'Double'], ['z', 'Double']]})
output = MAP({EXPRESSIONS=[['x+z','y']]}, input0)

...