Currently, the default DataType derived from properties is the default conversion now. However, some connectors/formats are still using sql Timestamp. But bridging DataType into sql Timestamp is not simple, because DataType is nested. So we propose to introduce a TypeTransformation which transform one data type to another, this is also a useful tool for FLIP-65.
The proposal including:
- Remove CallContext from the exiting TypeTransformation.
- add a package o.a.f.table.types.inference.transforms
- add commonly used transform classes there, e.g. timeToSqlTypes
- add a class `o.a.f.table.types.inference.TypeTransforms` for listing all available transforms