Skip to content

Commit

Permalink
Checkin: Fix a issue about the population on the measure def for
Browse files Browse the repository at this point in the history
calculated measures
  • Loading branch information
lzhang authored and mwu committed Dec 5, 2011
1 parent 4d10f59 commit 9978492
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -1675,10 +1675,10 @@ private void populateMeasureDefinitionForCalculateMeasures ( ICubeQueryDefinitio
{
IMeasureDefinition md = query.createMeasure( measureNames.get( j )
.toString( ) );
if ( this.cubeHandleMap != null
&& this.cubeHandleMap.containsKey( query.getName( ) ) )
if ( this.cubeMetaDataHandleMap != null
&& this.cubeMetaDataHandleMap.containsKey( query.getName( ) ) )
{
CubeHandle cubeHandle = (CubeHandle) this.cubeHandleMap.get( query.getName( ) );
CubeHandle cubeHandle = (CubeHandle) this.cubeMetaDataHandleMap.get( query.getName( ) );
MeasureHandle measureHandle = cubeHandle.getMeasure( measureNames.get( j )
.toString( ) );
md.setAggrFunction( DataAdapterUtil.adaptModelAggregationType( measureHandle.getFunction( ) ) );
Expand Down

0 comments on commit 9978492

Please sign in to comment.