private boolean isUselessCause(Throwable t) {
    return t instanceof RuntimeException || t instanceof InvocationTargetException;
  }
Unwraps Calcite Invocation exceptions coming meta data provider chain and
obtains the real cause.

@param e
ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java