BaseCharTypeInfo cinfo = (BaseCharTypeInfo) pinfo; return TypeDescription.createVarchar() .withMaxLength(cinfo.getLength()); .withMaxLength(cinfo.getLength());
BaseCharTypeInfo cinfo = (BaseCharTypeInfo) pinfo; return TypeDescription.createVarchar() .withMaxLength(cinfo.getLength()); .withMaxLength(cinfo.getLength());
case VARCHAR: requireChar(source, '('); result.withMaxLength(parseInt(source)); requireChar(source, ')'); break;
case CHAR: return TypeDescription.createChar() .withMaxLength(desc.getDataType().getLength()); case RECORD: { TypeDescription result = TypeDescription.createStruct();
case CHAR: return TypeDescription.createChar() .withMaxLength(desc.getDataType().getLength()); case RECORD: { TypeDescription result = TypeDescription.createStruct();
TypeDescription.createChar() : TypeDescription.createVarchar(); if (type.hasMaximumLength()) { result.withMaxLength(type.getMaximumLength());