1 package com.mapd.parser.extension.ddl.heavysql;
3 import static java.util.Objects.requireNonNull;
5 import com.google.gson.annotations.Expose;
7 import org.apache.calcite.sql.SqlBasicTypeNameSpec;
8 import org.apache.calcite.sql.SqlDataTypeSpec;
33 this.type = typeNameSpec.getName();
34 this.coordinateSystem = typeNameSpec.getCoordinate();
36 this.type = type.getTypeName().
toString();
38 if (type.getTypeNameSpec() instanceof SqlBasicTypeNameSpec) {
39 SqlBasicTypeNameSpec typeNameSpec = (SqlBasicTypeNameSpec) type.getTypeNameSpec();
41 typeNameSpec.getPrecision() == -1 ? null : typeNameSpec.getPrecision();
42 this.scale = typeNameSpec.getScale() == -1 ? null : typeNameSpec.getScale();
HeavySqlEncoding encoding
HeavySqlDataType(final SqlDataTypeSpec type, final boolean notNull, final HeavySqlArray array, final HeavySqlEncoding encoding)