TypeError: Cannot read property 'constructor' of undefined
at shredRecordInternal (/home/zjonsson/git/parquetjs/lib/shred.js:83:29)
at Object.exports.shredRecord (/home/zjonsson/git/parquetjs/lib/shred.js:40:3)
at ParquetWriter.appendRow (/home/zjonsson/git/parquetjs/lib/writer.js:94:22)
at main (/home/zjonsson/git/parquetjs/test.js:11:16)
at <anonymous>
When streaming from a database or csv, missing values are often in the Object.keys of the record with the value either set to
undefined
ornull
Here is an example that fails on colour (which is optional) being
undefined
in the second record.resulting in the following error: