Comments (3)
Well actually a stream interface is possible and was added in #296!
from parquet-wasm.
I should add, working with streams has the added benefit that streams can yield to the event loop. This is helpful when processing large amounts of data in a browser context as you need to yield to the event loop to keep the UI in a functional/responsive state.
from parquet-wasm.
From my knowledge of rust-wasm, I don't think a stream is possible. I couldn't even figure out a way to have an async iterator in JS that iterates on batches in the rust side.
The easiest workaround for now is to use the async functions to fetch one row group of data at a time. This only works when you're accessing a remote file; otherwise for a local file you still need to have all the source bytes in memory at once, though you can at least materialize the output arrow table in batches. The other big win for memory would be fleshing out the implementation of the Arrow C Data interface in JS, (I started that here), which would prevent a copy of the table from Arrow memory in Rust to the IPC buffer.
from parquet-wasm.
Related Issues (20)
- runtime error while reading large parquet HOT 6
- HEAD-ache requests HOT 2
- Do you have a data processing flowchart for this set? HOT 1
- Update `readParquetFFI` docs to drop the table
- Document that stream API needs polyfill to be used as async iterable HOT 5
- Deprecate arrow2/parquet2
- Try using `ParquetObjectReader` for arrow1 async api
- Module '"parquet-wasm/bundler/arrow2"' has no exported member '__wasm' HOT 3
- Group dependabot updates
- Add publish from CI
- Update README documentation HOT 2
- Request batching HOT 21
- bundler version doesn't work in production since 0.4.0-beta.5 HOT 3
- Unable to get 0.6.0-beta.1 to work in Node HOT 7
- Writing a Date column drops associated time information HOT 1
- Changelog notes: HOT 5
- explore ehttp for request fetching
- import with typescript HOT 3
- Example doesnt work HOT 18
- Cannot read properties of undefined (reading 'fromIPCStream') HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parquet-wasm.