[ 
https://issues.apache.org/jira/browse/CALCITE-4591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Hyde resolved CALCITE-4591.
----------------------------------
    Fix Version/s: 1.27.0
       Resolution: Fixed

Fixed inĀ 
[de847c38|https://github.com/apache/calcite/commit/de847c38f3544f9c7282984f32dc1093bdb2fb60].

> RelRunner should throw SQLException if prepare fails
> ----------------------------------------------------
>
>                 Key: CALCITE-4591
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4591
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>            Priority: Major
>             Fix For: 1.27.0
>
>
> {{interface RelRunner}} allows statements to be prepared from a {{RelNode}} 
> tree rather than via SQL. A {{RelRunner}} is typically obtained from a JDBC 
> connection, by calling {{connection.unwrap(RelRunner.class)}}. As such, 
> {{RelRunner}} is an extension to the JDBC driver, and therefore the 
> {{RelRunner.prepare(RelNode)}} method should throw {{SQLException}}, rather 
> than {{RuntimeException}} as it does today.
> This change adds a new method
> {code}
> PreparedStatement prepareStatement(RelNode) throws SQLException
> {code}
> and marks the current {{prepare}} method as deprecated. (As {{RelRunner}} is 
> marked "experimental", we could have removed or changed the old method 
> without notice, but chose not to.)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to