@Override
    public Class<? extends StorageBuilder> builder() {
        return AvgStorageBuilder.class;
    }
Service ID is required for sort query.
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/meter/function/avg/AvgFunction.java