pcgrenier commented on a change in pull request #4280:
URL: https://github.com/apache/nifi/pull/4280#discussion_r426841301
##########
File path:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/QueryRecord.java
##########
@@ -396,7 +396,7 @@ public void process(final OutputStream out) throws
IOException {
session.remove(createdFlowFiles);
session.transfer(original, REL_FAILURE);
} catch (final Exception e) {
- getLogger().error("Unable to query {} due to {}", new Object[]
{original, e});
+ getLogger().error("Unable to query {} due to {}", new Object[]
{original, e.getCause() == null ? e : e.getCause()});
Review comment:
Yeah, this one was a strange one. Since the calcite cast function
throwing the cannot handle Object exception was getting trapped here and the
message was super vague so had to dig into the app logs to see the stack trace.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]