Fix tests

This commit is contained in:
Kenny Daniel 2024-03-14 21:13:30 -07:00
parent 7823883853
commit 4654c5eddf
No known key found for this signature in database
GPG Key ID: 90AB653A8CAD7E45
3 changed files with 9 additions and 26 deletions

@ -193,7 +193,7 @@ export function assembleObjects(
const assign = []
for (let counter = 0; counter < repetitionLevels.length; counter++) {
const def = definitionLevels ? definitionLevels[counter] : maxDefinitionLevel
const def = definitionLevels?.length ? definitionLevels[counter] : maxDefinitionLevel
const rep = repetitionLevels[counter]
if (!rep) {

@ -1,31 +1,14 @@
[
[
8,
[],
[
-1,
-2,
null
],
[],
[],
[
null,
"k1",
null,
null
],
[
null,
1,
null,
null
],
[-1],
[-1, -2, null],
{ "k1": -1 },
{ "k1": 1 },
-1,
[],
[],
[],
[],
[-1],
[-1],
["nonnullable"],
[]
]
]

@ -17,7 +17,7 @@ const compressors = {
}
describe('parquetRead', () => {
const files = fs.readdirSync('test/files').filter(f => f.endsWith('Int_Map.parquet'))
const files = fs.readdirSync('test/files').filter(f => f.endsWith('.parquet'))
files.forEach(file => {
it(`should parse data from ${file}`, async () => {