You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Cai Liuyang (Jira)" <ji...@apache.org> on 2025/08/05 11:23:00 UTC

[jira] [Created] (FLINK-38192) Improve DynamicSourceUtils exception msg

Cai Liuyang created FLINK-38192:
-----------------------------------

             Summary: 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


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)