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

JDBC driver throws RuntimeExceptions rather than SQLExceptions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: Client - JDBC
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: