/** * Creates an inference rule which returns a type with precision but no scale, such as {@code * VARCHAR(100)}. */ public static ExplicitReturnTypeInference explicit(SqlTypeName typeName, int precision) { return explicit(RelDataTypeImpl.proto(typeName, precision, false)); }
/** Creates an inference rule which returns a copy of a given data type. */ public static ExplicitReturnTypeInference explicit(RelDataType type) { return explicit(RelDataTypeImpl.proto(type)); }