You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Istvan Toth (Jira)" <ji...@apache.org> on 2023/03/01 09:44:00 UTC

[jira] [Created] (PHOENIX-6891) Phoenix should throw SQLExceptions instead of RuntimeExceptions via JDBC

Istvan Toth created PHOENIX-6891:
------------------------------------

             Summary: Phoenix should throw SQLExceptions instead of RuntimeExceptions via JDBC
                 Key: PHOENIX-6891
                 URL: https://issues.apache.org/jira/browse/PHOENIX-6891
             Project: Phoenix
          Issue Type: Bug
          Components: core
            Reporter: Istvan Toth


We should make sure that all exceptions that we throw are SQLExceptions.

This does not apply to real unchecked expcetions like FNFE, but we shouldn't generate Runtime exceptions in the Phoenix sql logic, or at least catch and wrap them.

For example PDataType throws java.lang.UnsupportedOperation, which is bubbled up via the JDBC API to the caller. These should be SQLExceptions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)