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

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 ?

Upvotes: 0

Views: 1741

Answers (1)

Cinchoo
Cinchoo

Reputation: 6322

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

Upvotes: 0

Related Questions