Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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
PreparedStatement prepareStatement(RelNode) throws SQLException
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.)
Attachments
Issue Links
- relates to
-
CALCITE-4585 Improve error message from RelRunner
- Closed