News for hackers. Stuff that matters.
Re:Apache Arrow 3.0 by prepend on Wednesday February 03, 2021 @03:32PM (#26018723)
I recently found it useful for the dumbest reason. A dataset was about 3GB as a CSV and 20MB as a parquet file created and consumed by arrow. The file also worked flawlessly across different environments and languages.

So it’s a good transport tool. It also happens to be fast to load and query, but I only used it because of the compact way it stores data without any hoops to jump through.

Of course one might say that it’s stupid to try to pass around a 2GB or 20MB file, but in my case I needed to do that.

Re:Apache Arrow 3.0 by CameronNemo on Wednesday February 03, 2021 @11:10PM (#26022478)
Parquet is not Arrow. Parquet has optimizations for storage size at the expense of compute readiness. Arrow maximizes computation efficiency, at the expense of storage size.

Read more here: https://stackoverflow.com/questions/56472727/difference-betw...

Re:Apache Arrow 3.0 by prepend on Thursday February 04, 2021 @06:59AM (#26024622)
I used arrow to read and write parquets across environments. Thats my dumb reason for finding arrow so useful.
Re:Apache Arrow 3.0 by kristianp on Wednesday February 03, 2021 @07:08PM (#26020961)
Did you have to reformat the data to get that size saving?
Re:Apache Arrow 3.0 by prepend on Wednesday February 03, 2021 @09:43PM (#26021972)
Not at all. It was just swapping out readcsv with readparquet in R and Python. It was painless. Granted my dataset was mostly categorical so that’s why it compressed down so much, but it was a real lifesaver.

It was also nice to be able to read while bundles of parquet a into a single dataframe easily. So is nice for “sharding” really big parquets over multiple files. Or fitting under file size limits on git repos.

Re:Apache Arrow 3.0 by alisonkisk on Wednesday February 03, 2021 @11:35PM (#26022644)
gzip probably would have been fine for that case even without parquet?
Re:Apache Arrow 3.0 by prepend on Thursday February 04, 2021 @07:03AM (#26024640)
Gzip did help, but not as much as parquet. I don’t remember the exact sizes but I think parquet was was 3GB->20MB and gzip was like 3GB->180MB or something.

Also gzip was an extra step of unzip then read.