[FLINK-20291][table][filesystem] Optimize the exception message of FileSystemTableSink when missing format dependencies#14198
Conversation
…leSystemTableSink when missing format dependencies
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 9d29148 (Tue Nov 24 10:28:49 UTC 2020) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
JingsongLi
left a comment
There was a problem hiding this comment.
+1, thanks for the contribution.
|
source sink select 在flink客户端可以正常运行 使用java代码运行报错:Exception in thread "main" org.apache.flink.table.api.ValidationException: Unable to create a sink for writing table 'default_catalog.default_database.sink'. Table options are: 'connector'='kafka' |
What is the purpose of the change
Current when the format factory failed to load, the following exception would be thrown:
We might directly advice users to check if the format dependency is added or if there are package conflicts so that users would fix this issue faster.
Brief change log
Currently, we swallow all the exceptions when discovering format factories. Fix this problem by discovering format factories with exception throwing when the format factory exists. And throw a new exception if all the format factories are not exist.
Verifying this change
Does this pull request potentially affect one of the following parts:
@Public(Evolving): (yes / no)Documentation