I am trying to read a parquet file buffer from a React application, using this code:
const fileDataBuffer = Buffer.from(fileData);
let reader = await ParquetReader.openBuffer(fileDataBuffer);
// create a new cursor
let cursor = reader.getCursor();
// read all records from the file and print them
let record = null;
while (record = await cursor.next()) {
console.log(record);
}
However, when the code is executing this: record = await cursor.next(), I am getting the following error:
I am trying to read a parquet file buffer from a React application, using this code:
However, when the code is executing this:
record = await cursor.next()
, I am getting the following error:Could someone help me understand the issue here and how can I fix it? Appreciate it.