我正在尝试使用Node.js读取Parquet文件:
var parquet = require('parquetjs');
(
async () => {
try {
// create new ParquetReader that reads from 'fruits.parquet`
let reader = await parquet.ParquetReader.openFile('f1.snappy.parquet');
// 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);
}
} catch (e) {
console.log('error while reading a parquet file:\n', e)
}
}
) ();
出现错误:
error while reading a parquet file:
invalid page type: DICTIONARY_PAGE
同一个Parquet文件 - 我可以使用Python的PyArrow库轻松读取,可能的原因是什么呢?