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

Module '"parquet-wasm/bundler/arrow2"' has no exported member '__wasm' #354

Closed
Maxzurek opened this issue Oct 21, 2023 · 3 comments
Closed

Comments

@Maxzurek
Copy link

I am using vite js and the 0.4.0 version of this package.

I cannot import __wasm from any of the available bundles.
When reading the java doc for the readParquetFFI function, it says the wasm memory buffer is needed when parsing the record batch:
const WASM_MEMORY = __wasm.memory; const recordBatch = parseRecordBatch( WASM_MEMORY.buffer, wasmArrowTable.arrayAddr(i), wasmArrowTable.schemaAddr(), true );

Am I missing something?

@kylebarron
Copy link
Owner

if you use the latest alpha you can use the wasm_memory function (called something like that) to access the wasm memory instance. previously it was output-bundle dependent for how to access

@Maxzurek
Copy link
Author

Maxzurek commented Oct 21, 2023

Thanks for the quick answer. Is the latest alpha version 0.5.0-alpha.1 from npm? If so, I can import the _memory function if that is what is needed, but now I can't import the readParquetFFI function as it is not exported from any of the bundles.

@kylebarron
Copy link
Owner

0.5.0 is now published, and the documentation is updated. You should be able to use readParquet().toFFI()

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

No branches or pull requests

2 participants