mathyingzhou commented on a change in pull request #8648: URL: https://github.com/apache/arrow/pull/8648#discussion_r561520934
########## File path: cpp/src/arrow/adapters/orc/adapter_util.cc ########## @@ -316,10 +326,482 @@ Status AppendBatch(const liborc::Type* type, liborc::ColumnVectorBatch* batch, } } +template <class array_type, class batch_type> +Status FillNumericBatch(const DataType* type, liborc::ColumnVectorBatch* cbatch, + int64_t& arrowOffset, int64_t& orcOffset, int64_t length, + Array* parray, std::vector<bool>* incomingMask) { + auto array = checked_cast<array_type*>(parray); + auto batch = checked_cast<batch_type*>(cbatch); + int64_t arrowLength = array->length(); + if (!arrowLength) return Status::OK(); + if (array->null_count() || incomingMask) batch->hasNulls = true; Review comment: Thanks! I will fix all of them. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org