mirror of
https://github.com/asadbek064/hyparquet.git
synced 2026-01-10 21:16:36 +00:00
Fix tests
This commit is contained in:
parent
7823883853
commit
4654c5eddf
@ -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 () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user