[
https://issues.apache.org/jira/browse/CALCITE-4628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Hyde resolved CALCITE-4628.
----------------------------------
Resolution: Fixed
Fixed in
[342aeba1|https://github.com/apache/calcite/commit/342aeba1087857df48891655cf0de41d5f3479c7].
> 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
> Assignee: Julian Hyde
> Priority: Major
> 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)