Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-2555

JDBC driver throws RuntimeExceptions rather than SQLExceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • Client - JDBC
    • None

    Description

      In the JDBC driver, a number of methods throw java.lang.UnsupportedOperationException, a run-time exception.

      They should throw some SQLException, since that's the JDBC pattern and what JDBC clients will be expecting (i.e., coded to handle).

      They should probably use SQLFeatureNotSupportedException (at least for the case of an unsupported "optional JDBC feature" ) or SQLNonTransientException (or subclasses thereof).

      Attachments

        Issue Links

          Activity

            People

              dsbos Daniel Barclay
              dsbos Daniel Barclay
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: