Count is not a NumericAggregate

Original commit: elastic/x-pack-elasticsearch@7888ca231f
This commit is contained in:
Costin Leau 2017-08-17 17:11:14 +03:00
parent 4907f3bd54
commit 823bea50d0
1 changed files with 1 additions and 6 deletions

View File

@ -12,7 +12,7 @@ import org.elasticsearch.xpack.sql.tree.Location;
import org.elasticsearch.xpack.sql.type.DataType;
import org.elasticsearch.xpack.sql.type.DataTypes;
public class Count extends NumericAggregate implements DistinctAware {
public class Count extends AggregateFunction implements DistinctAware {
private final boolean distinct;
@ -25,11 +25,6 @@ public class Count extends NumericAggregate implements DistinctAware {
return distinct;
}
@Override
protected TypeResolution resolveType() {
return TypeResolution.TYPE_RESOLVED;
}
@Override
public DataType dataType() {
return DataTypes.LONG;