-
Notifications
You must be signed in to change notification settings - Fork 98
How to use snappy? #114
Comments
I tried to use
but the output file is still very large, about 34M,while with other 2 libraries, they are only 1KB |
Hi @seaguest, Looking at the snippet you shared it doesn't look like you are using segmentio/parquet-go. Using the following :
ends up creating a file of 1060 bytes so about 1KB. |
Indeed it works now. I saw other library has an option like this
why this library doesn't have such an option? |
We're planning to use different compression types for different fields in one struct (tracing data), which is why we thought that choice was a good fit. |
I'm going to close this - thanks for the issue report and glad you got it working! |
are you planning to provide an option of compression type for all fields in the future? thanks for your quick reply~ |
+1 on this. It would be great to provide an alternative way to pass compression config while initialising an writer. |
Created #124 as a follow up |
Hello,
I am trying yo use this library with snappy, but I can't find any example, here is my code
I tried github.com/fraugster/parquet-go, github.com/fraugster/parquet-go/parquet, it is very easy to use SNAPPY with them.
writer.Write(stu) // here argument can only be []byte
What is the right way to do so?
The text was updated successfully, but these errors were encountered: