twalthr opened a new pull request #14619:
URL: https://github.com/apache/flink/pull/14619
## What is the purpose of the change
This ensures a smooth mapping between `TypeInformation` and `DataType`. A
user can decide whether `TypeInformation` should be treated as an entire RAW
type or if instances should be converted to logical types on a best effort
basis. In any case, a user will not get an exception during conversion anymore
because every `TypeInformation` can be mapped to a non-legacy type in the Blink
planner.
## Brief change log
- Add a new TypeInformation to DataType converter that is backed by
`DataTypeFactory`
- Add API methods for creating a `DataType` either via
`DataTypes.of(TypeInformation)` or `DataTypes.RAW(TypeInformation)`
## Verifying this change
This change added tests and can be verified as follows:
- `DataTypesTest`
- `TypeInfoDataTypeConverterTest`
- `TypeInfoDataTypeConverterScalaTest`
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): yes
- 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/Mesos, 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.
For queries about this service, please contact Infrastructure at:
[email protected]