Search code examples
node.jspostgresqlnestjs

Convert csv to parquet files in nodejs


I have a Postgres DB and I want to export the tables to files in the format of parquet, and Postgres does not support parquet natively, so I exported the data in CSV format, yet of now I am not able to find a solution in NodeJs/NestJS to convert these files into parquet format.

I found tons of solutions using Python but don't wanna get out of NodeJS for this requirement.

Postgres version: 14, NodeJS version: >= 16.

Any help is appreciated.


Solution

  • Found this Parquetjs library and works pretty well.