fe/src/main/java/com/cloudera/impala/analysis/AggregateInfo.java
/**
   * Sanity check that the number of materialized slots of the agg tuple corresponds to
   * the number of materialized aggregate functions plus the number of grouping exprs.
   */
Sanity check that the number of materialized slots of the agg tuple corresponds to
the number of materialized aggregate functions plus the number of grouping exprs.
Sanity check that the number of materialized slots of the agg tuple corresponds to the number of materialized aggregate functions plus the number of grouping exprs .
public void checkConsistency() {
    int numMaterializedSlots = 0;
    for (SlotDescriptor slotDesc: aggTupleDesc_.getSlots()) {
      if (slotDesc.isMaterialized()) ++numMaterializedSlots;
    }
    Preconditions.checkState(numMaterializedSlots ==
        materializedAggregateSlots_.size() + groupingExprs_.size());
  }
public void checkConsistency ( ) { int numMaterializedSlots = 0 ; for ( SlotDescriptor slotDesc : aggTupleDesc_ . getSlots ( ) ) { if ( slotDesc . isMaterialized ( ) ) ++ numMaterializedSlots ; } Preconditions . checkState ( numMaterializedSlots == materializedAggregateSlots_ . size ( ) + groupingExprs_ . size ( ) ) ; }
Sanity check that the number of materialized slots of the agg tuple corresponds to
 the number of materialized aggregate functions plus the number of grouping exprs.
Sanity check that the number of materialized slots of the agg tuple corresponds to the number of materialized aggregate functions plus the number of grouping exprs .