Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4591

RelRunner should throw SQLException if prepare fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.27.0
    • 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

          Activity

            People

              julianhyde Julian Hyde
              julianhyde Julian Hyde
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: