Skip to content

Using parquet node

Example scenario

You can get the array object into parquet format.

Procedure

To get the array object into parquet format using parquet node, follow these steps:

  1. Design the flow as shown below:

    Design the flow

  2. Edit the function node properties:

    Edit the function

    • Name: Get array
    • Code :
        msg.payload = [{
            bool: true,
            num: 1
        },
        {
            bool: false,
            num: 2
        }];
        msg.schema = {
            bool: {type: "BOOLEAN"},
            num: {type: "DOUBLE"},
        };
        return msg;
    
  3. Save and execute the flow.

Result

The output will be displayed in the debug tab.

Debug tab

Any questions left?

Ask the community


Except where otherwise noted, content on this site is licensed under the MindSphere Development License Agreement.


Last update: April 29, 2022