checkpoint: updated PushAgg rule to avoid pushing unnesting with
positional variable.
diff --git a/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/PushAggregateIntoGroupbyRule.java b/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/PushAggregateIntoGroupbyRule.java
index 8708298..1312c32 100644
--- a/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/PushAggregateIntoGroupbyRule.java
+++ b/asterix-algebra/src/main/java/edu/uci/ics/asterix/optimizer/rules/PushAggregateIntoGroupbyRule.java
@@ -193,7 +193,6 @@
     }
 
     /**
-     * 
      * @param expr
      * @param aggVars
      * @param gbyWithAgg
@@ -311,6 +310,10 @@
                 }
                 case UNNEST: {
                     UnnestOperator unnest = (UnnestOperator) op;
+                    if (unnest.getPositionalVariable() != null) {
+                        // TODO currently subplan with both accumulating and running aggregate is not supported.
+                        return false;
+                    }
                     ILogicalExpression expr = unnest.getExpressionRef().getValue();
                     if (expr.getExpressionTag() != LogicalExpressionTag.FUNCTION_CALL) {
                         return false;