luffy-zh commented on code in PR #1932:
URL: https://github.com/apache/orc/pull/1932#discussion_r1601164246
##########
c++/src/Compression.cc:
##########
@@ -232,6 +239,13 @@ namespace orc {
}
rawInputBuffer.resize(0);
}
+ }
+
+ bool CompressionStream::Next(void** data, int* size) {
+ // triggle compress when rawInputBuffer is reach the capacity
+ if (rawInputBuffer.size() == compressBlockSize) {
Review Comment:
I'll add some checks in the writer init function.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]