1 package com.mapd.parser.extension.ddl.omnisql;
3 import static java.util.Objects.requireNonNull;
5 import com.google.gson.annotations.Expose;
27 final boolean notNull,
34 this.type = omniSqlTypeNameSpec.
getName();
37 this.type = type.getTypeName().toString();
39 if (type.getTypeNameSpec() instanceof SqlBasicTypeNameSpec) {
40 SqlBasicTypeNameSpec typeNameSpec = (SqlBasicTypeNameSpec) type.getTypeNameSpec();
42 typeNameSpec.getPrecision() == -1 ? null : typeNameSpec.getPrecision();
43 this.scale = typeNameSpec.getScale() == -1 ? null : typeNameSpec.getScale();
OmniSqlDataType(final SqlDataTypeSpec type, final boolean notNull, final OmniSqlArray array, final OmniSqlEncoding encoding)