luocooong commented on a change in pull request #2319:
URL: https://github.com/apache/drill/pull/2319#discussion_r712753255



##########
File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/enumerable/EnumerableRecordReader.java
##########
@@ -99,7 +103,9 @@ private void setup(OperatorContext context) {
             .iterator();
       }
     } catch (CompileException | IOException | ClassTransformationException | 
ReflectiveOperationException e) {
-      throw new RuntimeException("Exception happened when executing generated 
code", e.getCause());
+      logger.error("Exception happened when executing generated code", e);
+      Throwable rootCause = Throwables.getRootCause(e);
+      throw new DrillRuntimeException(rootCause.getMessage(), rootCause);

Review comment:
       Thanks.




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