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:
-
Design the flow as shown below:
-
Edit the function node properties:
- Name: Get array
- Code :
msg.payload = [{ bool: true, num: 1 }, { bool: false, num: 2 }]; msg.schema = { bool: {type: "BOOLEAN"}, num: {type: "DOUBLE"}, }; return msg;
-
Save and execute the flow.
Result¶
The output will be displayed in the debug tab.
Last update: January 22, 2024