internal bool HasLocalAggregate() { if (_expr != null) return _expr.HasLocalAggregate(); else return false; }