slinkydeveloper opened a new pull request #17768:
URL: https://github.com/apache/flink/pull/17768
## What is the purpose of the change
This PR clarifies the `DecodingFormat` architecture, clarifying the role of
the `physicalDataType` in `createRuntimeDecoder`, splitting the projection
ability in another interface called `ProjectableDecodingFormat`.
It also applies the change to most of the formats we support today, which
implicitly assumed (before this PR) that `DecodingFormat` included projected
fields.
## Brief change log
* Clarify `DecodingFormat` and introduce `ProjectableDecodingFormat`. For
more details, check out the javadoc included in this PR
* Introduce `ProjectedRowData` and `Projection` to simplify implementations
of connectors that needs to deal with projections
* Apply the changes to most of the formats and connectors we have. This PR
tries to address the changes to connectors and formats in a best effort manner.
## Verifying this change
The PR includes unit tests for `ProjectedRowData` and `Projection`. Changes
to `FileSystemTableSource` and to formats are already covered by existing tests.
## 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? not really, the feature
was already there but it was not properly documented
- 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]