diff --git a/src/main/kotlin/org/opensearch/indexmanagement/transform/model/Transform.kt b/src/main/kotlin/org/opensearch/indexmanagement/transform/model/Transform.kt index ce6e50401..1403639af 100644 --- a/src/main/kotlin/org/opensearch/indexmanagement/transform/model/Transform.kt +++ b/src/main/kotlin/org/opensearch/indexmanagement/transform/model/Transform.kt @@ -77,6 +77,9 @@ data class Transform( aggregations.aggregatorFactories.forEach { require(supportedAggregations.contains(it.type)) { "Unsupported aggregation [${it.type}]" } } + aggregations.pipelineAggregatorFactories.forEach { + require(supportedAggregations.contains(it.type)) { "Unsupported aggregation [${it.type}]" } + } when (jobSchedule) { is CronSchedule -> { // Job scheduler already correctly throws errors for this