You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2023/06/28 13:41:00 UTC

[jira] [Created] (FLINK-32470) SqlValidateException should be exposed as ValidationException

Timo Walther created FLINK-32470:
------------------------------------

             Summary: SqlValidateException should be exposed as ValidationException
                 Key: FLINK-32470
                 URL: https://issues.apache.org/jira/browse/FLINK-32470
             Project: Flink
          Issue Type: Bug
          Components: Table SQL / API, Table SQL / Planner
            Reporter: Timo Walther
            Assignee: Timo Walther


{{ValidationException}} is the main exception of the Table API and SQL in case the user did something wrong. Most exceptions are wrapped into {{ValidationException}}.

Since the parser module has no access to it, it introduces a custom {{SqlValidateException}}. However, this should not be exposed to users. It should only serve as an intermediate exception that is translated in {{FlinkPlannerImpl#validate}}.

{{SqlParserException}} and {{SqlParserEOFException}} could also be simplified to {{ValidationException}} but at least they are correctly annotated and located in the {{o.a.f.table.api}} package.



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