public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
 {
     AggregationValidationUtil.ValidateAggregationType(this, intoTableAgg);
     var that = (AggregationMethodFactorySum) intoTableAgg;
     AggregationValidationUtil.ValidateAggregationInputType(_inputValueType, that._inputValueType);
     AggregationValidationUtil.ValidateAggregationFilter(_parent.HasFilter, that._parent.HasFilter);
 }
Example #2
0
 public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
 {
     AggregationValidationUtil.ValidateAggregationType(this, intoTableAgg);
     var that = (AggregationMethodFactoryAvg) intoTableAgg;
     AggregationValidationUtil.ValidateAggregationInputType(ChildType, that.ChildType);
     AggregationValidationUtil.ValidateAggregationFilter(Parent.HasFilter, that.Parent.HasFilter);
 }
 public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
 {
     AggregationValidationUtil.ValidateAggregationType(this, intoTableAgg);
     var that = (AggregationMethodFactoryCountEver) intoTableAgg;
     if (that._ignoreNulls != _ignoreNulls)
         throw new ExprValidationException("The aggregation declares " +
                                           (_ignoreNulls ? "ignore-nulls" : "no-ignore-nulls") +
                                           " and provided is " +
                                           (that._ignoreNulls ? "ignore-nulls" : "no-ignore-nulls"));
     AggregationValidationUtil.ValidateAggregationFilter(_parent.HasFilter, that._parent.HasFilter);
 }
 public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
 {
     AggregationValidationUtil.ValidateAggregationType(this, intoTableAgg);
     var that = (AggregationMethodFactoryCount) intoTableAgg;
     AggregationValidationUtil.ValidateAggregationFilter(_parent.HasFilter, that._parent.HasFilter);
     if (_parent.IsDistinct)
         AggregationValidationUtil.ValidateAggregationInputType(_countedValueType, that._countedValueType);
     if (_ignoreNulls != that._ignoreNulls)
         throw new ExprValidationException("The aggregation declares" +
                                           (_ignoreNulls ? "" : " no") +
                                           " ignore nulls and provided is" +
                                           (that._ignoreNulls ? "" : " no") +
                                           " ignore nulls");
 }
Example #5
0
 public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
 {
     AggregationValidationUtil.ValidateAggregationType(this, intoTableAgg);
     var that = (AggregationMethodFactoryMinMax) intoTableAgg;
     AggregationValidationUtil.ValidateAggregationInputType(ResultType, that.ResultType);
     AggregationValidationUtil.ValidateAggregationFilter(_parent.HasFilter, that._parent.HasFilter);
     if (_parent.MinMaxTypeEnum != that._parent.MinMaxTypeEnum)
         throw new ExprValidationException(
             "The aggregation declares " +
             _parent.MinMaxTypeEnum.GetExpressionText() +
             " and provided is " +
             that._parent.MinMaxTypeEnum.GetExpressionText());
     AggregationValidationUtil.ValidateAggregationUnbound(_hasDataWindows, that._hasDataWindows);
 }