版本: 8.6-8.9
简要说明 #
简而言之,当 Elasticsearch 尝试对地理点(POINT)进行四舍五入操作时,会发生此错误,而这种操作是不可能完成的。这通常发生在以下场景:你在日期直方图聚合(date histogram aggregation)或任何其他四舍五入操作中使用了 geo_point 字段。
解决方案 #
要解决这个问题,请确保为你的操作使用了正确的字段类型:
- 如果你处理的是地理数据:使用地理聚合,如
geo_bounds或geo_centroid - 如果你处理的是时间数据:在日期直方图聚合中使用日期字段
日志上下文 #
日志信息"can’t round a [POINT]“的类名是 CartesianPointValuesSource.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些需要深入了解上下文的用户参考:
return org.elasticsearch.index.fielddata.FieldData.docsWithValue(pointValues);
}
@Override
public final Function roundingPreparer(AggregationContext context) {
throw new AggregationExecutionException("can't round a [POINT]");
}
/**
* Return point values.
*/





