Ejemplo n.º 1
0
 /**
  * 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));
 }
Ejemplo n.º 2
0
 /** Creates an inference rule which returns a copy of a given data type. */
 public static ExplicitReturnTypeInference explicit(RelDataType type) {
   return explicit(RelDataTypeImpl.proto(type));
 }