Package io.trino.plugin.hive.coercions
Class CoercionUtils
java.lang.Object
io.trino.plugin.hive.coercions.CoercionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<TypeCoercer<? extends Type,? extends Type>> createCoercer(TypeManager typeManager, HiveType fromHiveType, HiveType toHiveType, HiveTimestampPrecision timestampPrecision) static TypecreateTypeFromCoercer(TypeManager typeManager, HiveType fromHiveType, HiveType toHiveType, HiveTimestampPrecision timestampPrecision) static booleannarrowerThan(CharType first, CharType second) static booleannarrowerThan(VarcharType first, VarcharType second)
-
Method Details
-
createTypeFromCoercer
public static Type createTypeFromCoercer(TypeManager typeManager, HiveType fromHiveType, HiveType toHiveType, HiveTimestampPrecision timestampPrecision) -
createCoercer
public static Optional<TypeCoercer<? extends Type,? extends Type>> createCoercer(TypeManager typeManager, HiveType fromHiveType, HiveType toHiveType, HiveTimestampPrecision timestampPrecision) -
narrowerThan
-
narrowerThan
-