pitrou commented on a change in pull request #11641:
URL: https://github.com/apache/arrow/pull/11641#discussion_r746990488
##########
File path: cpp/src/arrow/compute/api_scalar.h
##########
@@ -223,6 +223,18 @@ class ARROW_EXPORT SetLookupOptions : public
FunctionOptions {
bool skip_nulls;
};
+/// Options for struct_field function
+class ARROW_EXPORT StructFieldOptions : public FunctionOptions {
+ public:
+ explicit StructFieldOptions(std::vector<int> indices);
Review comment:
Now that I think of it, it's probably better to resolve the field up
front (using the schema) than pay the cost for every kernel invocation with the
same schema.
--
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]