public class PlannerTypeUtils extends Object
LogicalType
and DataType
..Constructor and Description |
---|
PlannerTypeUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isAssignable(LogicalType t1,
LogicalType t2)
Now in the conversion to the TypeInformation from DataType, type may lose some information
about nullable and precision.
|
static boolean |
isInteroperable(LogicalType t1,
LogicalType t2)
Can the two types operate with each other.
|
static boolean |
isPrimitive(LogicalType type) |
static boolean |
isPrimitive(LogicalTypeRoot root) |
static LogicalType |
removeLegacyTypes(LogicalType t)
A conversion that removes all
LegacyTypeInformationType s by mapping to corresponding
new types. |
public static LogicalType removeLegacyTypes(LogicalType t)
LegacyTypeInformationType
s by mapping to corresponding
new types.public static boolean isPrimitive(LogicalType type)
public static boolean isPrimitive(LogicalTypeRoot root)
public static boolean isInteroperable(LogicalType t1, LogicalType t2)
public static boolean isAssignable(LogicalType t1, LogicalType t2)
The difference of isInteroperable(org.apache.flink.table.types.logical.LogicalType, org.apache.flink.table.types.logical.LogicalType)
is ignore precisions.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.