opensearch-project / index-management

🗃 Automate periodic data operations, such as deleting indices at a certain age or performing a rollover at a certain size
https://opensearch.org/docs/latest/im-plugin/index/
Apache License 2.0
53 stars 111 forks source link

[BUG] Can no longer run transform jobs that contain a script within an aggregation #1107

Open Bit-64 opened 7 months ago

Bit-64 commented 7 months ago

What is the bug? I currently have a transform job that I run periodically that used to run just fine on v2.7. Since upgrading to v2.11, the transform now fails with an error I have never seen before. I’ve had no issues running the transform aggregation without a proper field and only a script prior. If I add a bogus field to the aggregation, it runs just fine, but obviously without aggregating on the return value of the script. The aggregation still runs just fine outside of a transform in a normal search query.

How can one reproduce the bug? See here for configuration and current output error.

What is the expected behavior? Expect the transform job to run using the return value of the script as the field to aggregate on.

What is your host/environment?

dblock commented 3 months ago

Looks like a possible regression, were you able to narrow this down further @Bit-64 ?

Catch All Triage - 1 2 3 4 5