Julian Hyde created CALCITE-4628:
------------------------------------
Summary: If SqlImplementor fails, include the RelNode in the
exception
Key: CALCITE-4628
URL: https://issues.apache.org/jira/browse/CALCITE-4628
Project: Calcite
Issue Type: Bug
Reporter: Julian Hyde
Fix For: 1.28.0
If {{SqlImplementor}} fails, include the {{RelNode}} in the exception. (For
example, we recently encountered a {{java.lang.ArrayIndexOutOfBoundsException}}
where the problem was in the {{RelNode}} but the {{RelNode}} was not in the
stack.)
Add a catch block that calls
[Util.throwAsRuntime|https://github.com/apache/calcite/blob/f1309fa3af6826e73377e54081160228eb7ab951/core/src/main/java/org/apache/calcite/util/Util.java#L961]
to the {{SqlImplementor.visitRoot}} method. That method seems to be a widely
used entry point.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)