kylebarron / parquet-wasm

Rust-based WebAssembly bindings to read and write Apache Parquet data
https://kylebarron.dev/parquet-wasm/
Apache License 2.0
482 stars 19 forks source link

Set Parquet key-value metadata #503

Closed kylebarron closed 2 months ago

kylebarron commented 2 months ago

Should be able to set metadata with:

import {
  WriterProperties,
  WriterPropertiesBuilder,
} from "./pkg/esm/parquet_wasm.js";

let props = new Map<string, string>();
props.set("geo", "...");
let writerProps = new WriterPropertiesBuilder()
  .setKeyValueMetadata(props)
  .build();
github-actions[bot] commented 2 months ago

Asset Sizes

AssetUncompressed SizeCompressed Size
async_full/parquet_wasm_bg.wasm5.45MB $\color{red}\textbf{+1.28KB +0\%}$1.27MB $\color{green}\textbf{-5.83KB -0\%}$
slim/parquet_wasm_bg.wasm3.46MB $\color{red}\textbf{+1.45KB +0\%}$545KB $\color{red}\textbf{+977B +0\%}$
sync/parquet_wasm_bg.wasm4.74MB $\color{red}\textbf{+1.41KB +0\%}$1.03MB $\color{green}\textbf{-590B -0\%}$