Versions Compared

Key

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

...

Assume that a data source in sends key-value-pairs about persons in the following (JSON-)format: 

...

{person.name="Max", person.age=22, timestamp=11123}

Then, reading the name (and timestamp) is as follows: 

Code Block
languagepql
titleExample
out = KEYVALUETOTUPLE({
          schema=[['person.name', 'String'], ['timestamp', 'STARTTIMESTAMP']],
          type='Measurement',
          keepinput='false' 
        },
        in
      )

...