I am reading a third-party parquet file using parquetjs-lite
const parquet = require("parquetjs-lite");
:
reader = await parquet.ParquetReader.openFile(fileName);
cursor = reader.getCursor()
:
I am able to read the records (and rowCount) but how can I get the Schema and metadata info. Something like this from the doc (if I had created the Schema):
var schema = new parquet.ParquetSchema({
name: { type: 'UTF8' },
quantity: { type: 'INT64' },
price: { type: 'DOUBLE' },
date: { type: 'TIMESTAMP_MILLIS' },
in_stock: { type: 'BOOLEAN' }
});
From the field-names of the third-party parquet.
Thanks