Details
-
Bug
-
Status: Open
-
Not a Priority
-
Resolution: Unresolved
-
None
-
None
Description
Now, the user and planner construct TableSchema with various DataTypes, them maybe have various conversion classes.
For example, return DataType of Functions maybe with various TypeInformations and lead to various conversion classes.
TableSchema should only have logical informations instead of various conversion classes.
This ticket want to clean the field DataType in TableSchema and return a consistent conversion classes to users.
Modify:
getFieldDataTypes/getFieldDataType/toRowDataType in TableSchema.
Before return, we can bridgeTo default conversion class using TypeConversions.fromLogicalToDataType(type.getLogicalType()).