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)