drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Barclay (Drill) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-2555) JDBC driver throws RuntimeExceptions rather than SQLExceptions
Date Wed, 25 Mar 2015 05:32:52 GMT
Daniel Barclay (Drill) created DRILL-2555:
---------------------------------------------

             Summary: JDBC driver throws RuntimeExceptions rather than SQLExceptions
                 Key: DRILL-2555
                 URL: https://issues.apache.org/jira/browse/DRILL-2555
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Daniel Barclay (Drill)


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).





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message