Versions Compared

Key

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

...

For the key-value MAP operator the "kvexpressions" attribute has to be used. The "expressions" attribute only works for relational tuples.

Code Block
languagepql
themeEclipse
titleMap Operator for key value objects
linenumberstrue
output = MAP({
              kvexpressions = [
								['timestamp.unixtimestamp', 'Zeit'],
								['toLong(timestamp.unixtimestamp + 1)', 'Zeit2'],
                                ['track.artist.name', 'Band'],
                                ['track.name', 'Lied']
							]
             }, input)

...