skale-me / node-parquet

NodeJS module to access apache parquet format files
Apache License 2.0
57 stars 11 forks source link

write strings: fix memory problems. #19

Closed mvertes closed 7 years ago

mvertes commented 7 years ago

The input string must be copied into an allocated buffer to avoid data corruption by V8 garbage collector. This is due to the fact that actual file writing by parquet-cpp is delayed and may happen well after the write method returns.