You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Same to #9687, by checking all of the ingest processors which support template snippets for the field parameter and have ignore_missing parameter, I found that remove ingest processor also has the same problem with rename ingest processor, when setting field to a template snippet {{field_a}} and set ignore_missing to true, if field_a doesn't exist then remove processor throws illegal_argument_exception rather than exiting quietly.
Only remove and rename processor have that problem, other processors work well.
To Reproduce
Steps to reproduce the behavior:
Request:
{
"docs": [
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "path cannot be null nor empty"
}
],
"type": "illegal_argument_exception",
"reason": "path cannot be null nor empty"
}
},
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "path cannot be null nor empty"
}
],
"type": "illegal_argument_exception",
"reason": "path cannot be null nor empty"
}
}
]
}
Expected behavior
Remove ingest processor can handle ignore_missing parameter correctly, when the resolved template snippet of the field parameter is empty and ignore_missing is true, the processor exits quietly and do nothing.
Host/Environment (please complete the following information):
OS: [MacOS]
Version [OpenSearch 2.9]
The text was updated successfully, but these errors were encountered:
Describe the bug
Same to #9687, by checking all of the ingest processors which support template snippets for the
field
parameter and haveignore_missing
parameter, I found that remove ingest processor also has the same problem with rename ingest processor, when settingfield
to a template snippet {{field_a}} and setignore_missing
totrue
, if field_a doesn't exist then remove processor throwsillegal_argument_exception
rather than exiting quietly.Only remove and rename processor have that problem, other processors work well.
To Reproduce
Steps to reproduce the behavior:
Request:
Response:
Expected behavior
Remove ingest processor can handle ignore_missing parameter correctly, when the resolved template snippet of the field parameter is empty and
ignore_missing
is true, the processor exits quietly and do nothing.Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: