address cr

This commit is contained in:
fjy 2014-09-29 17:22:58 -07:00
parent 2b5ce89554
commit e1c1e8997a
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ public class SpatialDimensionRowFormatter
{
this.spatialDimensionMap = Maps.newHashMap();
for (SpatialDimensionSchema spatialDimension : spatialDimensions) {
this.spatialDimensionMap.put(spatialDimension.getDimName(), spatialDimension);
if (this.spatialDimensionMap.put(spatialDimension.getDimName(), spatialDimension) != null) {
throw new ISE("Duplicate spatial dimension names found! Check your schema yo!");
}
}
this.spatialPartialDimNames = Sets.newHashSet(
Iterables.concat(