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


Last update: January 22, 2024