Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Parquet key-value metadata #503

Merged
merged 2 commits into from
Apr 18, 2024
Merged

Conversation

kylebarron
Copy link
Owner

@kylebarron kylebarron commented Apr 17, 2024

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();

Copy link

github-actions bot commented Apr 17, 2024

Asset Sizes

Asset Uncompressed Size Compressed Size
async_full/parquet_wasm_bg.wasm 5.45MB $\color{red}\textbf{+1.28KB +0\%}$ 1.27MB $\color{green}\textbf{-5.83KB -0\%}$
slim/parquet_wasm_bg.wasm 3.46MB $\color{red}\textbf{+1.45KB +0\%}$ 545KB $\color{red}\textbf{+977B +0\%}$
sync/parquet_wasm_bg.wasm 4.74MB $\color{red}\textbf{+1.41KB +0\%}$ 1.03MB $\color{green}\textbf{-590B -0\%}$

@kylebarron kylebarron merged commit ba3c161 into main Apr 18, 2024
7 checks passed
@kylebarron kylebarron deleted the kyle/set-parquet-kv-metadata branch April 18, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant