wuchong commented on pull request #13214:
URL: https://github.com/apache/flink/pull/13214#issuecomment-705956351


   Hi @pyscala , thanks for the updating. 
   
   However, the new added `discoverOptionalFactory` method still no generic 
method for all kinds of fatories. What I mean was that you can just call 
`discoverFactory` and catch the exception in `discoverOptionalFactory`. And 
wrap the pretty exception message in `getDynamicTableFactory`. In 
`getDynamicTableFactory` you can use `discoverOptionalFactory` to discover for 
source and sink both and throw better exception if it is source-only but 
discovering sink or vise-versa. 
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to