niyue commented on code in PR #37752:
URL: https://github.com/apache/arrow/pull/37752#discussion_r1327939115


##########
cpp/src/gandiva/engine.cc:
##########
@@ -319,6 +319,10 @@ Status Engine::FinalizeModule() {
 
   // do the compilation
   execution_engine_->finalizeObject();
+  ARROW_RETURN_IF(
+      execution_engine_->hasError(),
+      Status::CodeGenError("Compilation failed: ", 
execution_engine_->getErrorMessage()));

Review Comment:
   This change is not directly to this PR, but previously error will not be 
reported after calling `finalizedObject`, which makes troubleshooting difficult.



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