dhruv9vats commented on a change in pull request #12162:
URL: https://github.com/apache/arrow/pull/12162#discussion_r786706752
##########
File path: cpp/src/arrow/compute/api_scalar.cc
##########
@@ -254,6 +254,26 @@ struct EnumTraits<compute::RandomOptions::Initializer>
}
};
+template <>
+struct EnumTraits<compute::MapArrayLookupOptions::Occurrence>
+ : BasicEnumTraits<compute::MapArrayLookupOptions::Occurrence,
+ compute::MapArrayLookupOptions::Occurrence::FIRST,
+ compute::MapArrayLookupOptions::Occurrence::LAST,
+ compute::MapArrayLookupOptions::Occurrence::ALL> {
+ static std::string name() { return "MapArrayLookupOptions::Occurrence"; }
+ static std::string value_name(compute::MapArrayLookupOptions::Occurrence
value) {
+ switch (value) {
+ case compute::MapArrayLookupOptions::Occurrence::FIRST:
+ return "FIRST";
+ case compute::MapArrayLookupOptions::Occurrence::LAST:
+ return "LAST";
+ case compute::MapArrayLookupOptions::Occurrence::ALL:
+ return "All";
Review comment:
```suggestion
return "ALL";
```
--
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]