ArianaVillegas commented on a change in pull request #11798:
URL: https://github.com/apache/arrow/pull/11798#discussion_r761222875
##########
File path: cpp/src/arrow/compute/kernels/util_internal.h
##########
@@ -161,6 +164,21 @@ int64_t CopyNonNullValues(const Datum& datum, T* out) {
return n;
}
+//--------------------------------------------------------------------------
+// An internal function to create an empty array, chucked array, record batch
and table.
+
+Result<std::shared_ptr<Array>> CreateEmptyArray(std::shared_ptr<DataType> type,
+ MemoryPool* memory_pool);
Review comment:
1. Not really. We can move these functions to their public APIs.
2. Yes, I can rename them. They would be MakeEmptyArray,
MakeEmptyChukedArray, MakeEmptyRecordBatch and MakeEmptyTable.
--
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]