lidavidm commented on a change in pull request #11313:
URL: https://github.com/apache/arrow/pull/11313#discussion_r742835180
##########
File path: cpp/src/arrow/compute/kernels/aggregate_mode.cc
##########
@@ -378,6 +395,21 @@ VectorKernel NewModeKernel(const
std::shared_ptr<DataType>& in_type) {
return kernel;
}
+Result<ValueDescr> ModeType(KernelContext*, const std::vector<ValueDescr>&
descrs) {
+ return ValueDescr::Array(
+ struct_({field(kModeFieldName, descrs[0].type), field(kCountFieldName,
int64())}));
+}
+
+VectorKernel NewModeKernel(Type::type type_id, ArrayKernelExec exec) {
Review comment:
Updated the registration here and the docs below.
--
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]