Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "hyparquet", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "parquet file parser for javascript", | ||
@@ -26,17 +26,16 @@ "keywords": [ | ||
"lint": "eslint .", | ||
"test": "vitest run", | ||
"typecheck": "tsc" | ||
"test": "vitest run" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "20.14.8", | ||
"@typescript-eslint/eslint-plugin": "7.13.1", | ||
"@vitest/coverage-v8": "1.6.0", | ||
"@types/node": "20.14.11", | ||
"@typescript-eslint/eslint-plugin": "7.17.0", | ||
"@vitest/coverage-v8": "2.0.4", | ||
"eslint": "8.57.0", | ||
"eslint-plugin-import": "2.29.1", | ||
"eslint-plugin-jsdoc": "48.3.0", | ||
"eslint-plugin-jsdoc": "48.8.3", | ||
"http-server": "14.1.1", | ||
"hyparquet-compressors": "0.1.4", | ||
"typescript": "5.4.5", | ||
"vitest": "1.6.0" | ||
"typescript": "5.5.4", | ||
"vitest": "2.0.4" | ||
} | ||
} |
@@ -19,2 +19,8 @@ # hyparquet | ||
## Demo | ||
Online parquet file reader demo available at: | ||
https://hyparam.github.io/hyparquet/ | ||
## Why hyparquet? | ||
@@ -43,10 +49,2 @@ | ||
## Demo | ||
Online parquet file reader demo available at: | ||
https://hyparam.github.io/hyparquet/ | ||
Demo source: [index.html](index.html) | ||
## Usage | ||
@@ -53,0 +51,0 @@ |
@@ -101,2 +101,5 @@ import { assembleLists } from './assemble.js' | ||
} | ||
if (rowData.length > rowLimit) { | ||
rowData.length = rowLimit // truncate to row limit | ||
} | ||
return rowData | ||
@@ -103,0 +106,0 @@ } |
@@ -113,4 +113,2 @@ | ||
/** @type {any[][]} */ | ||
const groupColumnData = [] | ||
const promises = [] | ||
@@ -186,4 +184,2 @@ // Top-level columns to assemble | ||
}) | ||
// save column data only if onComplete is defined | ||
if (options.onComplete) groupColumnData.push(columnData) | ||
})) | ||
@@ -194,3 +190,11 @@ } | ||
// transpose columns into rows | ||
return groupColumnData[0].map((_, row) => groupColumnData.map(col => col[row])) | ||
const groupData = new Array(rowLimit) | ||
const includedColumns = children | ||
.map(child => child.element.name) | ||
.filter(name => !columns || columns.includes(name)) | ||
.map(name => subcolumnData.get(name)) | ||
for (let row = 0; row < rowLimit; row++) { | ||
groupData[row] = includedColumns.map(column => column[row]) | ||
} | ||
return groupData | ||
} | ||
@@ -197,0 +201,0 @@ return [] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102222
2669
230