Skip to content

Commit 4213f24

Browse files
committed
transform ignore null AggregatorFactories.Builder
Signed-off-by: zhichao-aws <zhichaog@amazon.com>
1 parent ca28e20 commit 4213f24

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/org/opensearch/indexmanagement/transform/model

1 file changed

+1
-1
lines changed

src/main/kotlin/org/opensearch/indexmanagement/transform/model/Transform.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ data class Transform(
363363
groups.add(Dimension.parse(xcp))
364364
}
365365
}
366-
AGGREGATIONS_FIELD -> aggregations = AggregatorFactories.parseAggregators(xcp)
366+
AGGREGATIONS_FIELD -> AggregatorFactories.parseAggregators(xcp)?.let { aggregations = it }
367367
CONTINUOUS_FIELD -> continuous = xcp.booleanValue()
368368
USER_FIELD -> {
369369
user = if (xcp.currentToken() == Token.VALUE_NULL) null else User.parse(xcp)

0 commit comments

Comments
 (0)