Class TypeInfoLogicalTypeConverter


  • @Deprecated
    public class TypeInfoLogicalTypeConverter
    extends Object
    Deprecated.
    Converter between TypeInformation and LogicalType.

    This class is for: 1.Source, Sink. 2.UDF, UDTF. 3.Agg, AggFunctions, Expression, DataView.

    • Constructor Detail

      • TypeInfoLogicalTypeConverter

        public TypeInfoLogicalTypeConverter()
        Deprecated.
    • Method Detail

      • fromTypeInfoToLogicalType

        public static org.apache.flink.table.types.logical.LogicalType fromTypeInfoToLogicalType​(org.apache.flink.api.common.typeinfo.TypeInformation typeInfo)
        Deprecated.
        It will lose some information. (Like PojoTypeInfo will converted to RowType) It and fromLogicalTypeToTypeInfo(org.apache.flink.table.types.logical.LogicalType) not allows back-and-forth conversion.
      • fromLogicalTypeToTypeInfo

        public static org.apache.flink.api.common.typeinfo.TypeInformation fromLogicalTypeToTypeInfo​(org.apache.flink.table.types.logical.LogicalType type)
        Deprecated.
        Use BigDecimalTypeInfo to retain precision and scale of decimal.