Julian Hyde created CALCITE-4591:
------------------------------------

             Summary: 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


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