MCPcopy
hub / github.com/opentrace/opentrace / parquetToArrow

Function parquetToArrow

ui/src/store/ladybugStore.ts:476–482  ·  view source on GitHub ↗

Read a Parquet file into an Arrow JS table via parquet-wasm.

(
  data: Uint8Array,
)

Source from the content-addressed store, hash-verified

474
475/** Read a Parquet file into an Arrow JS table via parquet-wasm. */
476async function parquetToArrow(
477 data: Uint8Array,
478): Promise<import('apache-arrow').Table> {
479 const pw = await getParquetWasm();
480 const wasmTable = pw.readParquet(data);
481 return tableFromIPC(wasmTable.intoIPCStream());
482}
483
484// ---- Store implementation ----
485

Callers 1

importDatabaseMethod · 0.85

Calls 1

getParquetWasmFunction · 0.85

Tested by

no test coverage detected