Esempio n. 1
0
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            ExprFirstEverNodeFactory that = (ExprFirstEverNodeFactory)intoTableAgg;

            AggregationMethodFactoryUtil.ValidateAggregationInputType(_childType, that._childType);
            AggregationMethodFactoryUtil.ValidateAggregationFilter(_parent.HasFilter, that._parent.HasFilter);
        }
Esempio n. 2
0
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            ExprCountEverNodeFactory that = (ExprCountEverNodeFactory)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"));
            }
            AggregationMethodFactoryUtil.ValidateAggregationFilter(_parent.HasFilter, that._parent.HasFilter);
        }
Esempio n. 3
0
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            var that = (ExprMinMaxAggrNodeFactory)intoTableAgg;

            AggregationMethodFactoryUtil.ValidateAggregationInputType(_type, that._type);
            AggregationMethodFactoryUtil.ValidateAggregationFilter(_parent.HasFilter, that._parent.HasFilter);
            if (_parent.MinMaxTypeEnum != that._parent.MinMaxTypeEnum)
            {
                throw new ExprValidationException(
                          string.Format(
                              "The aggregation declares {0} and provided is {1}",
                              this._parent.MinMaxTypeEnum.GetExpressionText(),
                              that._parent.MinMaxTypeEnum.GetExpressionText()));
            }
            AggregationMethodFactoryUtil.ValidateAggregationUnbound(_hasDataWindows, that._hasDataWindows);
        }
Esempio n. 4
0
        public void ValidateIntoTableCompatible(AggregationMethodFactory intoTableAgg)
        {
            AggregationMethodFactoryUtil.ValidateAggregationType(this, intoTableAgg);
            ExprCountNodeFactory that = (ExprCountNodeFactory)intoTableAgg;

            AggregationMethodFactoryUtil.ValidateAggregationFilter(_parent.HasFilter, that._parent.HasFilter);
            if (_parent.IsDistinct)
            {
                AggregationMethodFactoryUtil.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");
            }
        }