mirror of
https://github.com/asadbek064/hyparquet.git
synced 2026-01-06 11:16:38 +00:00
Fix row limit for structs
This commit is contained in:
parent
543eba0307
commit
9cd2e3b666
@ -27,12 +27,12 @@
|
||||
"typecheck": "tsc"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "20.14.8",
|
||||
"@typescript-eslint/eslint-plugin": "7.13.1",
|
||||
"@types/node": "20.14.9",
|
||||
"@typescript-eslint/eslint-plugin": "7.14.1",
|
||||
"@vitest/coverage-v8": "1.6.0",
|
||||
"eslint": "8.57.0",
|
||||
"eslint-plugin-import": "2.29.1",
|
||||
"eslint-plugin-jsdoc": "48.3.0",
|
||||
"eslint-plugin-jsdoc": "48.4.0",
|
||||
"http-server": "14.1.1",
|
||||
"hyparquet-compressors": "0.1.4",
|
||||
"typescript": "5.4.5",
|
||||
|
||||
@ -98,6 +98,9 @@ export function readColumn(reader, rowLimit, columnMetadata, schemaPath, { compr
|
||||
if (rowData.length < rowLimit) {
|
||||
throw new Error(`parquet row data length ${rowData.length} does not match row group limit ${rowLimit}}`)
|
||||
}
|
||||
if (rowData.length > rowLimit) {
|
||||
rowData.length = rowLimit // truncate to row limit
|
||||
}
|
||||
return rowData
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user