-
Notifications
You must be signed in to change notification settings - Fork 124
Description
What is the bug?
Transform job to continuously roll up data that is at least 1 hour old is not working as expected.
I created transform configuration with continuous: true
, schedule
, and data_selection_query
successfully processes data that’s at least 1 hour old the first time it runs, but subsequent runs (e.g., every 5 minutes) aren’t transforming new data, even though new documents are appearing in the source index with metric_timestamp values that are now more than 1 hour old.
Created transform job as follows:
PUT _plugins/_transform/hourly_rollup_transform
{
"transform": {
"enabled": true,
"continuous": true,
"schedule": {
"interval": {
"period": 5,
"unit": "Minutes"
}
},
"description": "Sample transform job",
"source_index": "source-index-name",
"target_index": "hourly-rollup-target",
"data_selection_query": {
"range": {
"metric_timestamp": {
"lte": "now-60m"
}
}
},
"page_size": 10,
"groups": [
{
"date_histogram": {
"fixed_interval": "60m",
"source_field": "metric_timestamp",
"target_field": "metric_timestamp",
"timezone": "UTC",
"format": null
}
},
{
"terms": {
"source_field": "device.keyword",
"target_field": "device"
}
}
],
"aggregations": {
"m1": {
"avg": {
"field": "m1"
}
},
}
}
}
What is your host/environment?
"version": {
"distribution": "opensearch",
"number": "2.11.0",
"build_type": "tar",
"build_hash": "4dcad6dd1fd45b6bd91f041a041829c8687278fa",
"build_date": "2023-10-13T02:55:55.511945994Z",
"build_snapshot": false,
"lucene_version": "9.7.0",
"minimum_wire_compatibility_version": "7.10.0",
"minimum_index_compatibility_version": "7.0.0"
}