decimalType.getPrecision(),
decimalType.getScale());
} else if (type instanceof mondrian.olap.type.DimensionType) {
mondrian.olap.type.DimensionType dimensionType =
(mondrian.olap.type.DimensionType) type;
return new DimensionType(
toOlap4j(dimensionType.getDimension()));
} else if (type instanceof mondrian.olap.type.HierarchyType) {
return new BooleanType();
} else if (type instanceof mondrian.olap.type.LevelType) {
return new BooleanType();