DataTypeFactory.createDataType(TypeInformation)instead. Note that this method will not create legacy types anymore. It fully uses the new type system available only in the planner.
@Internal @Deprecated public final class LegacyTypeInfoDataTypeConverter extends Object
DataTypethat reflects the behavior before Flink 1.9. The conversion is a 1:1 mapping that allows back-and-forth conversion. Note that nullability constraints might get lost during the back-and-forth conversion.
This converter only exists to still support deprecated methods that take or return
TypeInformation. Some methods will still support type information in the future, however, the
future type information support will integrate nicer with the new type stack.
This converter reflects the old behavior that includes:
java.sql.*time classes for time data types.
Any changes here need to be applied to the legacy planner as well.
|Modifier and Type||Method and Description|
public static DataType toDataType(TypeInformation<?> typeInfo)
public static TypeInformation<?> toLegacyTypeInfo(DataType dataType)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.