You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Daniel Barclay (Drill) (JIRA)" <ji...@apache.org> on 2015/06/05 19:28:00 UTC

[jira] [Resolved] (DRILL-2555) JDBC driver throws RuntimeExceptions rather than SQLExceptions

     [ https://issues.apache.org/jira/browse/DRILL-2555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Barclay (Drill) resolved DRILL-2555.
-------------------------------------------
    Resolution: Fixed

Marking this report resolved since it's superseded by DRILL-2769.

> 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
>          Components: Client - JDBC
>            Reporter: Daniel Barclay (Drill)
>            Assignee: Daniel Barclay (Drill)
>             Fix For: 1.1.0
>
>
> 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)