ARROW-3831: [C++] Add support for returning decompressed size#3024
Conversation
|
Codecov Report
@@ Coverage Diff @@
## master #3024 +/- ##
==========================================
+ Coverage 86.94% 88.03% +1.08%
==========================================
Files 494 425 -69
Lines 70180 64841 -5339
==========================================
- Hits 61018 57081 -3937
+ Misses 9066 7760 -1306
+ Partials 96 0 -96
Continue to review full report at Codecov.
|
|
I've fixed it. |
wesm
left a comment
There was a problem hiding this comment.
+1. Thanks @kou! I opened https://issues.apache.org/jira/browse/ARROW-3877 about also adding support for decompression output size hints (which are provided by some of these libraries)
| &decompressed_size)) { | ||
| return Status::IOError("Corrupt snappy compressed data."); | ||
| } | ||
| *output_len = static_cast<int64_t>(decompressed_size); |
There was a problem hiding this comment.
You don't check that output_buffer_len is large enough here?
|
|
||
| ASSERT_EQ(data, decompressed); | ||
|
|
||
| // decompress with size with c2 |
There was a problem hiding this comment.
It would be useful to test what happens if the size is wrong...
|
I opened https://issues.apache.org/jira/browse/ARROW-3886 about adding another test |
|
I've created a pull request for it: #3057 |
No description provided.