@Override public MajorType getMajorType() { return Types.withPrecision(MinorType.VARCHAR, DataMode.REQUIRED, precision); }
@Override public MajorType getMajorType() { return Types.withPrecision(MinorType.VARCHAR, DataMode.REQUIRED, precision); }
/** * Create nullable varchar major type with given precision * and wraps it in typed null constant. * * @param precision precision value * @return typed null constant instance */ private TypedNullConstant createStringNullExpr(int precision) { return new TypedNullConstant(Types.withPrecision(MinorType.VARCHAR, TypeProtos.DataMode.OPTIONAL, precision)); } }