Versions Compared

Key

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

...

Code Block
languagepql
 projectJSON = PROJECT({paths = [['timestamp.unixtimestamp', 'List(Integer)'],['timestamp.iso', 'String']]}, receiverJSON)

Map

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

Code Block
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)

Wrapper

The feature adds protocol handler for the common key-value data formats JSON and BSON (binary JSON).

...