if (as.getAggregateFunction() == Type.AVG || as.isEnhancedNumeric()) { continue; //don't need to map these, they will just become constants
if (as.getAggregateFunction() == Type.AVG || as.isEnhancedNumeric()) { continue; //don't need to map these, they will just become constants
return DataTypeManager.DefaultDataClasses.BOOLEAN; if (isEnhancedNumeric()) { return DataTypeManager.DefaultDataClasses.DOUBLE;
return DataTypeManager.DefaultDataClasses.BOOLEAN; if (isEnhancedNumeric()) { return DataTypeManager.DefaultDataClasses.DOUBLE;
return DataTypeManager.DefaultDataClasses.BOOLEAN; if (isEnhancedNumeric()) { return DataTypeManager.DefaultDataClasses.DOUBLE;
nestedAggregates.add(countAgg); nestedAggregates.add(sumAgg); } else if (partitionAgg.isEnhancedNumeric()) {
nestedAggregates.add(countAgg); nestedAggregates.add(sumAgg); } else if (partitionAgg.isEnhancedNumeric()) {
nestedAggregates.add(countAgg); nestedAggregates.add(sumAgg); } else if (partitionAgg.isEnhancedNumeric()) {
if (aggregate.isEnhancedNumeric()) { if (!caps.supportsCapability(Capability.QUERY_AGGREGATES_ENHANCED_NUMERIC)) { return false;
handleValidationError(QueryPlugin.Util.getString("AggregateValidationVisitor.non_comparable", new Object[] {aggregateFunction, obj}), obj); //$NON-NLS-1$ if(obj.isEnhancedNumeric()) { if (!Number.class.isAssignableFrom(aggExps[0].getType())) { handleValidationError(QueryPlugin.Util.getString("ERR.015.012.0041", new Object[] {aggregateFunction, obj}), obj); //$NON-NLS-1$
handleValidationError(QueryPlugin.Util.getString("AggregateValidationVisitor.non_comparable", new Object[] {aggregateFunction, obj}), obj); //$NON-NLS-1$ if(obj.isEnhancedNumeric()) { if (!Number.class.isAssignableFrom(aggExps[0].getType())) { handleValidationError(QueryPlugin.Util.getString("ERR.015.012.0041", new Object[] {aggregateFunction, obj}), obj); //$NON-NLS-1$
handleValidationError(QueryPlugin.Util.getString("AggregateValidationVisitor.non_comparable", new Object[] {aggregateFunction, obj}), obj); //$NON-NLS-1$ if(obj.isEnhancedNumeric()) { if (!Number.class.isAssignableFrom(aggExps[0].getType())) { handleValidationError(QueryPlugin.Util.getString("ERR.015.012.0041", new Object[] {aggregateFunction, obj}), obj); //$NON-NLS-1$
if (aggregate.isEnhancedNumeric()) { if (!caps.supportsCapability(Capability.QUERY_AGGREGATES_ENHANCED_NUMERIC)) { return false;
if (aggregate.isEnhancedNumeric()) { if (!caps.supportsCapability(Capability.QUERY_AGGREGATES_ENHANCED_NUMERIC)) { return false;