use of org.apache.kudu.ColumnTypeAttributes in project presto by prestodb.
the class KuduClientSession method setTypeAttributes.
private void setTypeAttributes(ColumnMetadata columnMetadata, ColumnSchema.ColumnSchemaBuilder builder) {
if (columnMetadata.getType() instanceof DecimalType) {
DecimalType type = (DecimalType) columnMetadata.getType();
ColumnTypeAttributes attributes = new ColumnTypeAttributes.ColumnTypeAttributesBuilder().precision(type.getPrecision()).scale(type.getScale()).build();
builder.typeAttributes(attributes);
}
}
Aggregations