@Deprecated public class TypeInfoLogicalTypeConverter extends Object
TypeInformation and LogicalType.
This class is for: 1.Source, Sink. 2.UDF, UDTF. 3.Agg, AggFunctions, Expression, DataView.
| Constructor and Description |
|---|
TypeInfoLogicalTypeConverter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
static org.apache.flink.table.types.logical.LogicalType |
fromTypeInfoToLogicalType(org.apache.flink.api.common.typeinfo.TypeInformation typeInfo)
Deprecated.
It will lose some information.
|
public static org.apache.flink.table.types.logical.LogicalType fromTypeInfoToLogicalType(org.apache.flink.api.common.typeinfo.TypeInformation typeInfo)
PojoTypeInfo will converted to RowType)
It and fromLogicalTypeToTypeInfo(org.apache.flink.table.types.logical.LogicalType) not allows
back-and-forth conversion.public static org.apache.flink.api.common.typeinfo.TypeInformation fromLogicalTypeToTypeInfo(org.apache.flink.table.types.logical.LogicalType type)
BigDecimalTypeInfo to retain precision and scale of decimal.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.