Versions Compared

Key

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

...

Hint: StateMap can use history information. To access the last n.th version of an attribute use "__last_n." Mind the two "_" at the beginning!

Parameter

  • expressions: A list of expressions to map multiple incoming attribute values to out-coming attributes. Optional each expression can have a name (in this case use ['expression', 'expressionName'])
  • group_by: An optional list of attributes over which the grouping should occur.

Example

Code Block
languagepql
titleExample
linenumberstrue
output = MAPSTATEMAP({
              expressions = ['auction_id * 5','sqrt(auction_id)', '__last_5.auction_id]
             }, input)

...