public String getRedshiftType() { String typeString = type.getRedshiftType(); if (typeString.equals("VARCHAR")) { if (length == 0) { typeString += "(256)"; } else { typeString += "(" + length + ")"; } } return typeString; }
@JsonCreator public CanvasDataSchemaColumn( @JsonProperty("name") final String name, @JsonProperty("description") final String description, @JsonProperty("type") final String type, @JsonProperty("dimension") final CanvasDataSchemaDimension dimension, @JsonProperty("length") final int length, @JsonProperty("snowflake") final Boolean snowflake, @JsonProperty("sortKey") final Boolean sortKey, @JsonProperty("descripton") final String descripton, @JsonProperty("see_also") final String seeAlso) { this.name = name; this.description = description; this.sortKey = sortKey; this.descripton = descripton == null ? descripton : description; this.type = CanvasDataSchemaType.parse(type); this.dimension = dimension; this.length = length; this.snowflake = snowflake; this.seeAlso = seeAlso; this.newGenerated = false; }
public String getHiveType() { return type.getHiveType(); }