vibhatha commented on code in PR #14186:
URL: https://github.com/apache/arrow/pull/14186#discussion_r979144265


##########
cpp/src/arrow/engine/substrait/util.cc:
##########
@@ -147,6 +147,15 @@ const std::string& default_extension_types_uri() {
   return uri;
 }
 
+std::string EnumToString(int value, const google::protobuf::EnumDescriptor* 
descriptor) {
+  const google::protobuf::EnumValueDescriptor* value_desc =
+      descriptor->FindValueByNumber(value);
+  if (value_desc == nullptr) {
+    return "unknown";
+  }
+  return value_desc->name();
+}
+

Review Comment:
   I moved the `EnumToString` function to `util.h`



-- 
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

Reply via email to