Airblader opened a new pull request #17384:
URL: https://github.com/apache/flink/pull/17384
## What is the purpose of the change
This introduces `Module#getTableSourceFactory` and
`Module#getTableSinkFactory`, which allow providing a corresponding factory
when sources/sinks are created. The precedence is as follows:
1. Factory defined by the catalog
2. Factory defined by the module
3. Factory discovery
It may seem more appropriate to give modules the higher precedence, but in
practice it's more useful to prefer the specificity of the catalog and have the
module act as a fallback (that can override the discovery process fallback).
The changes in `FactoryUtil` have been kept backwards-compatible, but the
old methods have been deprecated.
## Brief change log
* Provide `ModuleManager` in `FlinkContext`
* Introduce the new APIs.
## Verifying this change
*(Please pick either of the following options)*
Compatibility is covered through existing tests. A new `ModuleITCase` has
been added to verify the new module APIs.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): no
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: yes
- The serializers: no
- The runtime per-record code paths (performance sensitive): no
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
- The S3 file system connector: no
## Documentation
- Does this pull request introduce a new feature? yes
- If yes, how is the feature documented? JavaDocs
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]