rtpsw commented on code in PR #34627:
URL: https://github.com/apache/arrow/pull/34627#discussion_r1151929090


##########
cpp/src/arrow/engine/substrait/expression_internal.h:
##########
@@ -34,6 +35,15 @@ namespace engine {
 
 class SubstraitCall;
 
+ARROW_ENGINE_EXPORT
+Result<FieldRef> DirectReferenceFromProto(const 
substrait::Expression::ReferenceSegment*,
+                                          const ExtensionSet&, const 
ConversionOptions&);
+
+ARROW_ENGINE_EXPORT
+Result<compute::Expression> FromProto(const 
substrait::Expression::ReferenceSegment*,
+                                      const ExtensionSet&, const 
ConversionOptions&,
+                                      std::optional<compute::Expression>);

Review Comment:
   I don't think `expression_internal.cc`, which deals with Substrait 
expression parsing, is the right place for any of the `Make*Rel` methods, which 
deal with Substrait extension handling.
   
   IMO, refactoring of `options.cc` could be reasonable but is outside the 
scope of this PR.



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

Reply via email to