You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Laurent Goujon (JIRA)" <ji...@apache.org> on 2016/10/03 22:15:20 UTC
[jira] [Created] (CALCITE-1408) AccessorImpl throws
RuntimeException when conversion is impossible
Laurent Goujon created CALCITE-1408:
---------------------------------------
Summary: AccessorImpl throws RuntimeException when conversion is impossible
Key: CALCITE-1408
URL: https://issues.apache.org/jira/browse/CALCITE-1408
Project: Calcite
Issue Type: Bug
Components: avatica
Reporter: Laurent Goujon
{{AccessorImpl}} relies on {{cannotConvert(String)}} method to throw a exception when conversion is not possible between the accessor data type, and what the user requested.
The exact class type of the exception is {{RuntimeException}} which is very generic, and not easy for the user to catch, unlike more specific types. Moreover JDBC drivers usually throws a {{SQLException}} instances for these kind of exceptions, which is likely what users are expecting.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)