From ff82f714e706fb4d511d41931664cd51b08ac877 Mon Sep 17 00:00:00 2001 From: Riya <69919272+riysaxen-amzn@users.noreply.github.com> Date: Wed, 4 Dec 2024 12:48:28 -0800 Subject: [PATCH] fix compilation error in 1.3 (#1736) Signed-off-by: Riya Saxena --- .../bucketselectorext/BucketSelectorExtAggregator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/aggregation/bucketselectorext/BucketSelectorExtAggregator.kt b/alerting/src/main/kotlin/org/opensearch/alerting/aggregation/bucketselectorext/BucketSelectorExtAggregator.kt index f121138b7..a9d555778 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/aggregation/bucketselectorext/BucketSelectorExtAggregator.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/aggregation/bucketselectorext/BucketSelectorExtAggregator.kt @@ -143,7 +143,7 @@ class BucketSelectorExtAggregator : SiblingPipelineAggregator { private fun isAccepted(obj: Any, filter: IncludeExclude?): Boolean { return when (obj.javaClass) { String::class.java -> { - val stringFilter = filter!!.convertToStringFilter(DocValueFormat.RAW) + val stringFilter = filter!!.convertToStringFilter(DocValueFormat.RAW, null) stringFilter.accept(BytesRef(obj as String)) } java.lang.Long::class.java, Long::class.java -> {