Moritz Manner created FLINK-41428:
-------------------------------------
Summary: FLIP-620: Structured errors for Table API and SQL
Key: FLINK-41428
URL: https://issues.apache.org/jira/browse/FLINK-41428
Project: Flink
Issue Type: Improvement
Components: API / Core, Table SQL / API, Table SQL / Planner
Reporter: Moritz Manner
Implementation of [FLIP-620|http://example.com/], which is currently still
under discussion on the [dev mailing
list|https://cwiki.apache.org/confluence/spaces/FLINK/pages/462815815/FLIP-620+Structured+errors+for+Table+API+and+SQL].
Exceptions can carry a FlinkError: a stable name, a category (USER, INTERNAL,
EXTERNAL), attributes such as the SQLSTATE, and a message template with typed
arguments. Callers can check for an error and read its arguments instead of
parsing messages, and log a redacted message without user data.
FlinkRuntimeException and FlinkException implement FlinkThrowable and get
constructors that take an error. ValidationException, TableException and
CatalogException extend FlinkRuntimeException, and the checked catalog
exceptions such as TableNotExistException extend FlinkException. Catch blocks
and serialized exceptions from earlier versions keep working.
The work is split into sub-tasks.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)