elasticio / jsonata-transform-component

Dedicated data transformation component for elastic.io platform based on JSONata
Apache License 2.0
3 stars 5 forks source link

The evaluation result considered as array if it's a string #58

Open HannaTrotsenko opened 5 months ago

HannaTrotsenko commented 5 months ago

STR:

  1. Configure componet with the next $base64encode("myuser:foobar")
  2. Click evaluate ->> Mapping result is bXl1c2VyOmZvb2Jhcg==
  3. Retrieve sample
  4. See the logs

AR: component splits this string by symbols, you got so many outcoming messages as many symbols this string has. Log says Result from evaluation is an array, each item of the array will be send to the next step as a separate message

The same situation is in runtime

ER: it should be one sample , same as in mapping result