How to create schema for parquet.net using the .net data table

1.4k Views Asked by At

I have one data table which I want to convert to parquet file and upload to blob storage. But i don't have the static schema so how can i do that ?

1

There are 1 best solutions below

0
On

Use Cinchoo ETL - an open source library to upload the datatable to azure storage

Here is working sample

DataTable dt = new DataTable();
using (var w = new ChoParquetWriter("Parquet file stream / path"))
{
    w.Write(dt);
}

For more information, refer this link below

Creating a file as a stream and uploading to Azure