[ 
https://issues.apache.org/jira/browse/ARROW-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16692089#comment-16692089
 ] 

Wes McKinney commented on ARROW-3831:
-------------------------------------

What do you think about adding a second {{Decompress}} virtual method that will 
return the output length?

https://github.com/apache/arrow/blob/master/cpp/src/arrow/util/compression.h#L106

The default implementation could be NotImplemented for codecs that do not 
support this

> [C++] arrow::util::Codec::Decompress() doesn't return decompressed data size
> ----------------------------------------------------------------------------
>
>                 Key: ARROW-3831
>                 URL: https://issues.apache.org/jira/browse/ARROW-3831
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 0.11.1
>            Reporter: Kouhei Sutou
>            Priority: Major
>
> We can't know decompressed data size when we only have compressed data. The 
> current {{arrow::util::Codec::Decompress()}} doesn't return decompressed data 
> size. So we can't know which data in {{output_buffer}} can be used.
> FYI: {{arrow::util::Codec::Compress()}} returns compressed data size.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to