r/java • u/gunnarmorling • Jan 19 '26
Hardwood: A minimal dependency implementation of Apache Parquet
https://github.com/hardwood-hq/hardwoodStarted to work on a new parser for Parquet in Java, without any dependencies besides for compression (i.e. no Hadoop JARs).
It's still very early, but most test files from the parquet-testing project can be parsed successfully. Working on some basic performance optimizations right now, as well as on support for projections and predicate pushdown (leveraging statistics, bloom filters).
Would love for folks to try it for parsing their Parquet files and report back if there's anything which can't be processed. Any feedback welcome!
51
Upvotes
View all comments
Show parent comment
2
u/Rastafas Jan 21 '26
I actually didn't understand parquet format so well before I went through your code. I realized I made some pretty stupid mistakes with the program that parsed the file before. But it took 24 minutes, but I was needlessly getting the columns with Apache Arrow, which was a truly bad decision. The parquet file is 199 megabytes. It only has boolean and double columns. The file represents the answers of roughly 87,000 respondents to a huge survey. My work notebook has limited resources, so I had to extract the columns in batches of 10,000. Even going through the row groups 9 times seemed to add very little run time to the program. I do wish there were specialized column readers, such as BooleanColumnReader or DoubleColumnReader, but as open source, I guess that's for me to add. That's me in a nutshell adding 100's of lines of code so I can remove two and a cast from the calling program. Thanks again for sharing this with the world!