版本: 8.9-8.9
简而言之,当您试图在Elasticsearch中为非序列数据类型使用"缺失"功能时,会出现此错误。Elasticsearch仅支持序列类型的缺失事件。要解决此问题,您可以将数据转换为序列类型,或者避免对非序列数据类型使用"缺失"功能。另外,您也可以在应用程序级别处理缺失事件,通过在向Elasticsearch发送数据之前实现错误处理或数据验证。
日志上下文 #
日志"Missing events are supported only for sequences"的类名是 LogicalPlanBuilder.java。我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入上下文的人参考:
return new KeyedFilter(source; new LocalRelation(source; emptyList()); emptyList(); UNSPECIFIED_FIELD; UNSPECIFIED_FIELD; false);
}
public KeyedFilter visitJoinTerm(JoinTermContext ctx; ListjoinKeys; Attribute timestampField; Attribute tiebreakerField) {
if (ctx.subquery().MISSING_EVENT_OPEN() != null) {
throw new ParsingException("Missing events are supported only for sequences");
}
return keyedFilter(joinKeys; ctx; ctx.by; ctx.subquery(); timestampField; tiebreakerField; false);
}
private KeyedFilter keyedFilter(





