clintropolis commented on a change in pull request #8566: Upgrade Calcite to 
1.21
URL: https://github.com/apache/incubator-druid/pull/8566#discussion_r332781707
 
 

 ##########
 File path: 
sql/src/test/java/org/apache/druid/sql/calcite/util/CalciteTests.java
 ##########
 @@ -814,4 +815,19 @@ public static SystemSchema createMockSystemSchema(
     );
     return schema;
   }
+
+  /**
+   * Some Calcite exceptions (such as that thrown by
+   * {@link 
org.apache.druid.sql.calcite.CalciteQueryTest#testCountStarWithTimeFilterUsingStringLiteralsInvalid)},
+   * are structured as a chain of RuntimeExceptions caused by 
InvocationTargetExceptions. To get the root exception
+   * it is necessary to make getTargetException calls on the 
InvocationTargetExceptions.
+   */
+  public static Throwable 
getRootCauseFromInvocationTargetExceptionChain(Throwable t)
 
 Review comment:
   :+1:

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to