Count is not a NumericAggregate
Original commit: elastic/x-pack-elasticsearch@7888ca231f
This commit is contained in:
parent
4907f3bd54
commit
823bea50d0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue