[
https://issues.apache.org/jira/browse/FLINK-38192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
reswqa resolved FLINK-38192.
----------------------------
Resolution: Done
master(2.4) via 570cb32dc1e1a365352b2c6c8abb7053b6aea3a8.
> Improve DynamicSourceUtils exception msg
> ----------------------------------------
>
> Key: FLINK-38192
> URL: https://issues.apache.org/jira/browse/FLINK-38192
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / Planner
> Reporter: Cai Liuyang
> Assignee: Arvind Kandpal
> Priority: Not a Priority
> Labels: pull-request-available
> Fix For: 2.4.0
>
>
> If DynamicTableSource doesn't impl the interface of SupportsReadingMetadata,
> it will throw an exception with msg like: "Table 'xxx' declares metadata
> columns, but the underlying DynamicTableSource doesn't implement the
> SupportsReadingMetadata interface. Therefore, metadata cannot be read from
> the given source. ",see
> code:[DynamicSourceUtils#validateAndApplyMetadata|https://github.com/apache/flink/blob/master/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/connectors/DynamicSourceUtils.java#L442]
>
> maybe we can print DynamicTableSource's real class name rather than
> DynamicTableSource to provide more information
--
This message was sent by Atlassian Jira
(v8.20.10#820010)