You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Java Datastore客户端调用runAggregation抛出“Not implemented”异常

Datastore聚合查询count特性调用报错问题

我尝试使用Datastore聚合查询的新count特性(相关提交已在DatastoreImpl中实现该方法),但调用runAggregation方法时仍抛出如下异常:

UnsupportedOperationException: Not implemented.

我的代码是参考官方示例及Javadoc编写的:

val selectAllQuery = Query.newEntityQueryBuilder().setKind(entityName).build()
val aggregationQuery: AggregationQuery =
    Query.newAggregationQueryBuilder().addAggregation(count().`as`("total_count")).over(selectAllQuery).build()

val aggregationResults =
    datastore.runAggregation(aggregationQuery).forEach {
        println(it)
    }

内容的提问来源于stack exchange,提问作者Guillermo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.14 18:55:24