bkietz commented on a change in pull request #10802: URL: https://github.com/apache/arrow/pull/10802#discussion_r679994244
########## File path: cpp/src/arrow/compute/kernels/vector_selection.cc ########## @@ -2146,6 +2147,144 @@ class TakeMetaFunction : public MetaFunction { } }; +// ---------------------------------------------------------------------- +// DropNull Implementation + +Result<std::shared_ptr<arrow::Array>> GetNotNullIndices( + const std::shared_ptr<Array>& column, MemoryPool* memory_pool) { + std::shared_ptr<arrow::Array> indices; + arrow::NumericBuilder<arrow::Int32Type> builder(memory_pool); + builder.Reserve(column->length() - column->null_count()); Review comment: Every function which returns Status or Result<> will prompt a similar compiler error if not explicitly handled, since it could be ignoring (for example) an OOM Status https://github.com/apache/arrow/pull/10802/checks?check_run_id=3202879387#step:5:608 ```suggestion RETURN_NOT_OK(builder.Reserve(column->length() - column->null_count())); ``` -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org